您的位置:首页 > 金融 >

连点器备份

2023-07-10 18:11:50 来源:哔哩哔哩

评论

#include<>

#include<iostream>

using namespace std;


(资料图片仅供参考)

int main(){

cout<<"What do you want?\n0--------Press the Ctrl+V.\n1--------Let the code to be a mouse.\n";

bool a;

cin>>a;

if(!a){

cout<<"I see.\nI will press the Ctrl+V,and I will sleep a few microsecends.";

cout<<"\nNow press my sleep time.(ms)\n";

int time;

cin>>time;

cout<<"I see,I will press "<</time<<" \"Ctrl+V\"s in one secend.\nIf you press the ESC,I will sleep until another ESC.\n";

bool openorclose=true;

while(1){

if(openorclose){

Sleep(time);

keybd_event(VK_CONTROL, 0, 0, 0);

keybd_event(byte('V'), 0, 0, 0);

keybd_event(byte('V'), 0, KEYEVENTF_KEYUP, 0);

keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);

}if(GetAsyncKeyState(VK_ESCAPE)){

openorclose=!openorclose;

while(GetAsyncKeyState(VK_ESCAPE)){

}

}

}

}else{

cout<<"I see.\nI will be a mouse,and I will sleep a few microsecends.";

cout<<"\nNow press my sleep time.\n";

int time;

cin>>time;

cout<<"I see,I will press "<</time<<" the left of the mouse in one secend.\nIf you press the ESC,I will sleep until another ESC.\n";

bool openorclose=true;

while(1){

if(openorclose){

Sleep(time);

mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);

}if(GetAsyncKeyState(VK_ESCAPE)){

openorclose=!openorclose;

while(GetAsyncKeyState(VK_ESCAPE)){

}

}

}

}

}

[责任编辑:]

相关阅读

参与评论

关于我们| 广告服务| 隐私政策| 服务条款| 备案号:琼ICP备2022009675号-29 联系QQ:5 0 8 0 6 3 3 5 9

Copyright @ 2008-2015 www.ccnf.cn All Rights Reserved 中国经营网 版权所有