Error: Invalid key name.
Text: keydown
The program will exit.
from the code below.
It was fine in 1.1L, but I'm having issues converting these two to v2.
Anyone have any suggestions?
Code: Select all
Loop {
for sendkey, value in keys { ; Loop through each of the keys in key_list
if (value){
Send("{blind} {" . sendkey . " down}")
Send("{blind} {" . sendkey . " up}")
}
}
NewDelay := rnd(delay*.9,delay*1.1)
Sleep NewDelay
}
keydown( ; Keys are pressed
key := SubStr(A_ThisHotkey,3)
keys[key] := 1
)
keyup( ; Keys are released
key := SubStr(A_ThisHotkey,3)
key := substr(key, 1, StrLen(key) - 3)
keys[key] := 0
)