Hi
I need a script that automatically sends repeated keys to an active game with a delay between the keys.
Heres the whole deal. In the game I play you can shovel and possibly get items from shoveling. I put the shovel in the quickslot 3 so whenever I press 3 it digs and the "Pick-Up" action in quickslot 2.
I need the script to press "3" and then "2" 8 seconds later and then start the loop again. All this automatic, but it could have a start key if necessary.
Code:
Loop 6000
{
Send {3 down} {3 up}
Sleep 8000
Send {2 down} {2 up}
}
This is the code I wrote and it worked like a charm one time. But ever since it doesn't work. I run AutoHotKey and then maximize the game and nothing happens.
I checked by putting the game down and opened AHK window and the script runs fine, it just doesn't reflect in-game for x reason.
If you can help it would be appreciated or point me to another forum thred that gives better steps. I already searched and couldn't find it. If you need more info I'll be around.
Thank you.