?? memkey.c
字號:
#include<stdio.h>
#include<stdlib.h>
#include<alloc.h>
#include<dos.h>
keyboard(int choice,char key[])
{
int offset,i;
offset=peek(0x40,0x1c);
for(i=0;key[i]!='\x0';i++)
{
if(choice==0)
{
pokeb(0x40,offset,0x00);
pokeb(0x40,offset,key[i]);
}
if(choice!=0)
{
pokeb(0x40,offset,key[i]);
pokeb(0x40,offset+1,0x00);
}
offset=offset+2;
if(offset==0x3e)offset=0x1e;
}
pokeb(0x40,0x1c,offset);
}
main()
{
struct time tt;
char name[10];
int t,t1,t2,flag=0;
gettime(&tt);
t1=tt.ti_sec;
printf("input files name");
while(!kbhit())
{
gettime(&tt);
t2=tt.ti_sec;
t=t2-t1;
if(t>2)
{
flag=1;
break;
}
}
if(flag==1)
keyboard(1,"memkey\x0D");
gets(name);
printf("%s",name);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -