I have a simple script sending 2 keystrokes to a Unity window(UnityWndClass).
Code: Select all
Loop
{
Send "K"
Sleep(5000)
Send "T"
Sleep(3000)
}
I have tried
- changing to SendInput - same result
- changing to SendPlay - no keys arrive at all
- add SetKeyDelay - same result
My last try:
Code: Select all
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)
}
Any suggestions? Thanks in advance!