My question is, can I prepare code on a specific thread, then run it afterwards?
Meaning, can I for example add `ControlSend,, {F11}, Somewindow` to a thread, then run it later?
Currently, to send keys to multiple windows at once, when hitting one button, I do this:
Code: Select all
sendThread1.AddScript("ControlSend,, {F11}, Window1", 2)
sendThread2.AddScript("ControlSend,, {F11}, Window2", 2)
sendThread3.AddScript("ControlSend,, {F11}, Window3", 2)
This is the real problem, but I am guessing this delay happens, because it takes some time for AHK_H to add that code to that thread, and then to run it.
Any help is appreciated, thank you!