Guest IceHeartBlack Posted April 6, 2004 Share Posted April 6, 2004 I'm very new to auto it but what I need is a script that will click x330 y200 every 10 mins then click x100 y525 right once, after that click x100 y505 4 times after that(preferablely with a 3-5 sec delay between each click) after that the script resets until I shut it down. Here's what I got so far(probably horriblely wrong lol): SetHotKey(^{esc},_Terminate) While 1 If WinActive("Untitled -") Then MouseClick ( "left" , 330, 200 , 1 , 10 ) Sleep, (10000) MouseClick ( "left" , 100, 525 , 1 , 10) Sleep,(3000) MouseClick ( "left" , 100, 505 , 1 , 10 ) Sleep, (3000) MouseClick ( "left", 100, 505 , 1 , 10 ) Sleep, (3000) MouseClick ( "left" , 100, 505, 1 , 10 ) Sleep, (3000) MouseClick ( "left" , 100, 505, 1 , 10 ) EndIf WEnd Func _Terminate() Exit EndFunc Link to comment Share on other sites More sharing options...
jpm Posted April 6, 2004 Share Posted April 6, 2004 Are you "dislexic" SetHotKey should be HotKeySet sleep syntax is as any autoit3 functions sleep(3000) no comma anymore Good luck with your first AutoIt3 script HotKeySet("^{esc}","_Terminate") While 1 If WinActive("Untitled -") Then MouseClick ( "left" , 330, 200 , 1 , 10 ) Sleep (10000) MouseClick ( "left" , 100, 525 , 1 , 10) Sleep(3000) MouseClick ( "left" , 100, 505 , 1 , 10 ) Sleep (3000) MouseClick ( "left", 100, 505 , 1 , 10 ) Sleep (3000) MouseClick ( "left" , 100, 505, 1 , 10 ) Sleep (3000) MouseClick ( "left" , 100, 505, 1 , 10 ) EndIf WEnd Func _Terminate() Exit EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now