Log in to reply
 

How can i simulate KeyUp and KeyDown event inside are onTick?



  • This post is deleted!


  • @sneakybeaky18 I'm not sure what you are trying to do. The ontick is used to check or execute code every frame or as per a user defined interval - sort of runs by itself.

    A keypress, and you don't need both, is for manual intervention. What I think you want is a condition in ontick that will execute code when it is met - this will simulate the keypress without needing the manual intervention.



  • This post is deleted!


  • @sneakybeaky18 instead of having the program simulate or press a key, it will call the function. Do you have experience programming? A keypress is for a user, not for your program to try and press the key, entirely unnecessary.

    If however there was a situation where you needed the program to do the equivalent of pressing a key, you could use sendkeys with c#.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.