I'm terrible at this, and I'm trying to run a loop that will press enter every few seconds to a pokemon game that I downloaded. My script should work, but it doesn't go through to the game. Anything wrong with this script that I'm just not seeing?
I'm terrible at this, and I'm trying to run a loop that will press enter every few seconds to a pokemon game that I downloaded. My script should work, but it doesn't go through to the game. Anything wrong with this script that I'm just not seeing?
There is no enter in your script?
Your loop sends the c key, displays a tooltip, and sleeps.
Also, your script will only activate the Pokemon window once, when it first starts. If you change to another window, the keys will be sent to the new window.
How would I make the script work multiple times?
Easiest way would be to put the WinActivate command inside the loop.