能不能编写个让ctrl键代替鼠标左键,alt键代替右键的软件啊?
我对编程一窍不通,这里高手如云,由于我的右手残疾问题,导致鼠标点一会就非常的酸痛,所以麻烦高手能不能帮忙定做个让ctrl键代替鼠标左键,alt键代替右键的软件,弟感激不尽了,希望好心人能帮忙下,谢谢
#include <windows.h> #include <stdio.h> #include <conio.h> int main() { int x = 17,y = 18; while(1) { if(GetAsyncKeyState(x)) { mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0); Sleep(200); mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0); } if(GetAsyncKeyState(y)) { mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0); Sleep(200); mouse_event(MOUSEEVENTF_RIGHTUP,0,0,0,0); } Sleep(200); } return 0; }只要你把这段代码一直运行着 那么你的鼠标不管在哪里 都是ctrl == 左键 alt == 右键