Hello,
I have a simple script sending 2 keystrokes to a Unity window(UnityWndClass).
These keys are bound to some in-game actions. When I run that script, only the "K" is received by the game, "T" is not received ever. I tried to re-bind(swap) the keys in the game, and well, the another key was received, meaning that it is the in-game action that is somehow rejecting the Send()- generated keystroke...
I have tried
- changing to SendInput - same result
- changing to SendPlay - no keys arrive at all
- add SetKeyDelay - same result
My last try:
No single action mapped to "T" is executed...
Any suggestions? Thanks in advance!
I have a simple script sending 2 keystrokes to a Unity window(UnityWndClass).
CODE:
Loop
{
Send "K"
Sleep(5000)
Send "T"
Sleep(3000)
}
These keys are bound to some in-game actions. When I run that script, only the "K" is received by the game, "T" is not received ever. I tried to re-bind(swap) the keys in the game, and well, the another key was received, meaning that it is the in-game action that is somehow rejecting the Send()- generated keystroke...
I have tried
- changing to SendInput - same result
- changing to SendPlay - no keys arrive at all
- add SetKeyDelay - same result
My last try:
CODE:
InstallKeybdHook
SetKeyDelay(50,100)
MsgBox("ready?")
SendMode "Input"
Send "K"
Sleep(4000)
Loop
{
Send "K"
Sleep(5000)
Send "T"
Sleep(1000)
SendInput "T"
Sleep(1000)
SendPlay "T"
Sleep(1000)
}
No single action mapped to "T" is executed...
Any suggestions? Thanks in advance!
Statistics: Posted by avernikov — Today, 14:36