/*
____ _ ___ ____ _
| _ \(_)_ __ __ _ / _ \ / ___|| |_ __ _ _ __
| |_) | | '_ \ / _` | | | | \___ \| __/ _` | '__|
| _ <| | | | | (_| | |_| | ___) | || (_| | |
|_| \_\_|_| |_|\__, |\___/ |____/ \__\__,_|_|
|___/
1/ Set the g_RefreshRate to whatever you want. The higher, the slower. 100ms is the maximum refreshrate allowed
2/ If you want to modify the script to make it work with another key or another class, it's at the bottom of the script.
Just use the TABLE.txt file to search for the right keycode.
3/ Enjoy
*/
////////////// SET THIS AT YOUR WISH /////////////////////
int g_RefreshRate = 500; //500 = 500ms. Don't go under 100ms
//////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
//~~~~~~~~~~~~~~ DO NOT TOUCH THIS PART !!!! ~~~~~~~~~~~~~~//
int CGetTickCount( )
{
int dwAddress = CGetProcAddress( "KERNEL32.DLL", "GetTickCount" );
string dwCPU = CGenerateHeader( ) +
CGenerateMovEax( dwAddress ) +
CGenerateCallEax( ) +
CGenerateFooter( );
return CProcessorExecute( dwCPU );
}
void EntryPoint( )
{
int dwOldTick = CGetVarValue( "OldTick" ), dwCurTick = CGetTickCount( );
if( dwOldTick == 0xDEADC0DE || dwOldTick < dwCurTick ){
CSetVarValue( "OldTick", dwCurTick + g_RefreshRate );
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~//
///////////////////////////////////////////////////////////
////////////// THIS IS WHERE YOU SEND THE KEY /////////////
CSendKeyPress( VK_LBUTTON );
}
}