-
个人简介
don't leave me drifting out there in the dark alone
#include<windows.h> #include<bits/stdc++.h> using namespace std; int main(){ srand(time(NULL)); // Sleep(2000); while(1){ if(GetAsyncKeyState(VK_RETURN)&0x8000){ Sleep(800); SetCursorPos(800,800); for(int i=0;i<10;i++){keybd_event(78,0x1F,0,0);keybd_event(78,0x1F,KEYEVENTF_KEYUP,0);} mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);Sleep(1); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);Sleep(1); mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0);Sleep(1); mouse_event(MOUSEEVENTF_RIGHTUP,0,0,0,0);Sleep(1); SetCursorPos(850,690); mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);Sleep(1); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);Sleep(1); // Sleep(1000); SetCursorPos(800,800); mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0);Sleep(1); mouse_event(MOUSEEVENTF_RIGHTUP,0,0,0,0);Sleep(1); SetCursorPos(850,600);//return 0; mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);Sleep(1); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);Sleep(1); SetCursorPos(600,50); mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); keybd_event(78,0x1F,0,0);//Sleep(1);//n keybd_event(78,0x1F,KEYEVENTF_KEYUP,0);//n keybd_event(79,0x1F,0,0);//Sleep(1);//o keybd_event(79,0x1F,KEYEVENTF_KEYUP,0);//o keybd_event(84,0x1F,0,0);//Sleep(1);//t keybd_event(84,0x1F,KEYEVENTF_KEYUP,0);//t keybd_event(69,0x1F,0,0);//Sleep(1);//e keybd_event(69,0x1F,KEYEVENTF_KEYUP,0);//e keybd_event(110,0x1F,0,0);//Sleep(1);//. keybd_event(110,0x1F,KEYEVENTF_KEYUP,0);//. keybd_event(77,0x1F,0,0);//Sleep(1);//m keybd_event(77,0x1F,KEYEVENTF_KEYUP,0);//m keybd_event(83,0x1F,0,0);//Sleep(1);//s keybd_event(83,0x1F,KEYEVENTF_KEYUP,0);//s keybd_event(111,0x1F,0,0);//Sleep(1);// / keybd_event(111,0x1F,KEYEVENTF_KEYUP,0);// / int n=rand()%10+1; for(int i=1;i<=n;i++){ int x=rand()%2; if(x==0){ x=rand()%10+96; keybd_event(x,0x1F,0,0); keybd_event(x,0x1F,KEYEVENTF_KEYUP,0); }else{ x=65+rand()%26; keybd_event(x,0x1F,0,0); keybd_event(x,0x1F,KEYEVENTF_KEYUP,0); } // Sleep(1); } } } }
-
通过的题目
-
最近活动
This person is lazy and didn't join any contests or homework. -
最近编写的题解
This person is lazy and didn't write any solutions. -
Stat
-
Rating
题目标签
- 系统测试
- 2