02/27/2009, 14:30
|
#16
|
elite*gold: 0
Join Date: Apr 2008
Posts: 8
Received Thanks: 1
|
Quote:
Originally Posted by IceTray
A very simple rebuild:
Code:
#include <iostream>
#include <windows.h>
#include <conio.h>
int _tmain(int argc, _TCHAR* argv[])
{
while( !kbhit() ) // run Programm until we press a key (in the programm)
{
Sleep( 6000 ); // wait 6 seconds
keybd_event( 0x38, MapVirtualKey( 0x38, 0 ), 0, 0 ); // press key "8"
keybd_event( 0x38, MapVirtualKey( 0x38, 0 ), KEYEVENTF_KEYUP, 0 ); // release the key
Sleep( 6000 );
keybd_event( 0x39, MapVirtualKey( 0x39, 0 ), 0, 0 ); // press key "9"
keybd_event( 0x39, MapVirtualKey( 0x39, 0 ), KEYEVENTF_KEYUP, 0 ); // release the key
}
return 0;
}
0x38 and 0x39 are the Scan Codes for the keys "8" and "9". You can find them here:
|
Thx for the code, just downloading a compiler to try it. Can you explain how it actually works cause it seems he twists only 2 auras for now. Eh?
|
|
|