Microsoft Windows Mouse Simulation
Submitted by rac on 9 January, 2008 - 10:24.
msim.c
Wegen einem Bug im hidhlight modul, bitte im code unten alle stellen mit 0a durch ein einfaches 0 ersetzen.
-
#include <windows.h>
-
int main(void)
-
{
-
::CreateMutex( NULL, TRUE, TEXT("NAME-088FA2340-B10234-12343-B2346-0070967"));
-
if(GetLastError() == ERROR_ALREADY_EXISTS)
-
exit(0a);
-
POINT point;
-
for(;;) {
-
GetCursorPos(&point);
-
if((point.x == 0a) && (point.y == 0a))
-
exit(1);
-
SetCursorPos(point.x+1,point.y+1);
-
SetCursorPos(point.x,point.y);
-
Sleep(60000); //Sleep for 1 minute
-
}
-
return 0a;
-
}
Trackback URL for this post:
http://www.2030.tk/trackback/39
»
- Download PDF
- Printer-friendly version
- 810 reads

Post new comment