Hackshield pro does block / ignore the KeyBoardEvent() when run in a script however i know it is possible to send keys because autoit is able to circumvent Hackshield's keybord block (not mouse click / move though) gonna see if i can make a working sendkey for LSS. For now i'm gonna research how AutoIt does send keys and see if i can replicate that. If anyone else has ideas plz post em i need all the help i can get.
EDIT: Ok i was way to hasty in concluding that MHS
KeyBoardEvent() doesn't work. It does. I was using in a hotkey that used alt, and stupidly forgot to put in a
sleep() before the
KeyBoardEvent() so all the keys were being translated as alt + keystroke. Here is what i have for key input (ty to mezzo for the script i just added the sleep)
- Code: Select all
void type_command (char * pChar){
int counter;
short letterke ;
int iLength = StrLen( pChar );
for ( counter = 0; counter < iLength ; counter++ ) {
letterke = VkKeyScan( pChar[counter] );
KeyboardEvent( letterke , 0 );
Sleep(15);
KeyboardEvent( letterke , KEYEVENTF_KEYUP );}
}
also if you plan on using hot keys with any of the modifier keys remember to put a
sleep(100) before calling the type_command to be sure your finger is off the mod key. [/code]
Microsoft: "You've got questions. We've got dancing paperclips."