Jump to content

Final Question :)


Recommended Posts

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
Link to comment
Share on other sites

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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...