Page 1 of 1

Setting up auto game play

Posted: 22 Jan 2016, 15:10
by pphan
so i need help with working out my script for some key press and mouse click for a game i play.
What i want to do with this script is that it will refresh my browser every 2 hours. then after refresh and game load (takes 1-2 minutes for loading), i want my mouse to click several buttons to put my game into AFK Mode. so i wrote this

Code: Select all

#Persistent
SetTimer, PressTheKey,7200000
Return

PressTheKey:
Send, {Browser_Refresh}
Send, {Enter}

SetMouseDelay, 120000
MouseClick, left, 446, 719
MouseClick, left, 921, 717
MouseClick, left, 900, 667
The problem i having is that the refresh part will work. but then the rest wont.
please help!!

Re: Setting up auto game play

Posted: 23 Jan 2016, 08:45
by evilC
F5 normally causes a browser to refresh, try that.
Is the game a browser game, or is the browser a different window?

Re: Setting up auto game play

Posted: 23 Jan 2016, 11:10
by pphan
it is a browser game. and the refreshing part is working just fine. it is the later part that i need help with. after refreshing i want the mouse to auto click to start my in game AFK function. This later part is the one that is not working. I dont know why. Please help because im a super noob at AHK