deadlywasher How do I cheat?
Reputation: 0
Joined: 22 Sep 2020 Posts: 1
|
Posted: Tue Sep 22, 2020 5:15 pm Post subject: Script is spamming keys, can't figure out why. |
|
|
| Code: |
if syntaxcheck then return end
addressList = getAddressList()
setGlobalKeyPollInterval(1)
setGlobalDelayBetweenHotkeyActivation(33)
timer = createTimer(getMainForm())
timer.Enabled = true
timer.Interval = 33
timer.OnTimer = function(timer)
P1Move = addressList.getMemoryRecordByDescription('P1Move').value
if P1Move == "90" then
P1 = "00"
keyDown(80)
keyDown(76)
sleep(725)
keyUp(80)
keyUp(76)
end
end
|
Script should be doing just a couple of keypresses, is spamming many more. Not sure why after a few hours of try.
****Figured out the code is fine. App just responds badly to virtual keypresses. Any suggestions?
|
|