Posted: Fri Aug 31, 2012 3:20 pm Post subject: press keyboard botton in LUA?
are there any LUA function to do a keyboard function?
forexample..
Code:
for i=1,totalUnits do
writeInteger(currentAddress,valuesForEachUnit[i])
currentAddress=currentAddress+0x8
**keyboardpress("n") --pressing "n" is a hotkey in the game.
end
This way ,, when I copy a specific value to each unit. It ll automatic pressing botton "N" for each one . When "n" is a hotkey in a game to do something.
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
Posted: Fri Aug 31, 2012 3:29 pm Post subject:
These might help
Code:
keyDown(key) : causes the key to go into down state
sleep(milliseconds)
keyUp(key) :causes the key to go up
doKeyPress(key) : simulates a key press
VK_N is the keycode to use
Note though that this does not work for all games. If that happens you could try a code injection in the game that does the n-key press internally when a specific address has value 1(which is set by your script) _________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum