eyob Posted July 29, 2006 Share Posted July 29, 2006 just says cannot start loop..dunno wats wrong expandcollapse popupRun("D:\Program Files\Advanced Combat Tracker\Advanced Combat Tracker.exe"); Start ACT WinWaitActive("Advanced Combat Tracker - (Eyob) Log Active"); Makes AutoIt wait till window is open MouseClick ("left", 968, 33, 1, 0); Maximizes window Sleep(3000); Pause 3 seconds MouseClick ("left", 1251, 39, 1, 0); Opens up Mini Sleep(3000); Pause 3 seconds MouseClick ("left", 354, 40, 1, 0); Selects Tab "Import/Export" Sleep(3000); Pause 3 seconds MouseClick ("left", 455, 123, 1, 0); Selects "Select File" Sleep(4000); Pause 4 seconds MouseClick ("left", 532, 267, 2, 0); Selects Eyob's log file and opens it Sleep(120000); Pauses 2 minutes MouseClick ("left", 643, 565, 1, 0); Selects "ok" Sleep(2000); Pauses 2 seconds MouseClick ("left", 21, 41, 1, 0); Selects "Main" tab While; Begining loop for ACT refresh Sleep(120000); Pause 2 minutes MouseClick ("left", 354, 40, 1, 0); Selects Tab "Import/Export" Sleep(3000); Pause 3 seconds MouseClick ("left", 455, 123, 1, 0); Selects "Select File" Sleep(4000); Pause 4 seconds MouseClick ("left", 283, 282, 2, 0); Selects Eyob's log file and opens it Sleep(20000); Pauses 20 seconds MouseClick ("left", 643, 565, 1, 0); Selects "ok" Sleep(2000); Pauses 2 seconds MouseClick ("left", 21, 41, 1, 0); Selects "Main" tab WEnd; End of loop Link to comment Share on other sites More sharing options...
Helge Posted July 29, 2006 Share Posted July 29, 2006 The expression is missing in the While-loop. Make it something like this instead :While 1 ; code WEnd Link to comment Share on other sites More sharing options...
Vivvic Posted July 29, 2006 Share Posted July 29, 2006 (edited) Try while 1 instead of while, also look into stuff like winsetstate and control click for maximizeing and clicking and such for more reliablity. EDIT: Darn got beat to it>.< Edited July 29, 2006 by Vivvic [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] 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