Sign in to follow this  
Followers 0
eyob

Final Question :)

3 posts in this topic

just says cannot start loop..dunno wats wrong

Run("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

Share this post


Link to post
Share on other sites



The expression is missing in the While-loop. Make it something like this instead :

While 1
   ; code
WEnd

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 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]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0