Sign in to follow this  
Followers 0
PcExpert

Script Doesn't Work

4 posts in this topic

Hello,

I just made this script:

HotKeySet("{F1}", "ZLAS")

Sleep(3000000)

Func ZLAS()

Run("C:\Program Files\Zone Labs\ZoneAlarm\zlclient.exe")

WinWaitActive("ZoneAlarm Pro")

MouseClick("left", 67, 319, 1)

MouseClick("left", 518, 381, 1)

EndFunc()

But it doesn't work. If I press F1 it only starts ZoneAlarm Pro, but it doesn't do the mouseclicks, is there something wrong?

Thanks,

PcExpert

Share this post


Link to post
Share on other sites



Comment out your WinWaitActive line and see what it does. If it then does the MouseClick's check that you have the correct title for the screen you are waiting for.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

try this

HotKeySet("{F1}", "_ZLAS")
HotKeySet("{ESC}", "_exit")

While 1
    Sleep(250)
WEnd

Func _ZLAS()
    Run("C:\Program Files\Zone Labs\ZoneAlarm\zlclient.exe")
    If WinWaitActive("ZoneAlarm Pro","",5) Then
        MouseClick("left", 67, 319, 1)
        MouseClick("left", 518, 381, 1)
    Else
        MsgBox(0,"Timeout","you know why...")
    EndIf
EndFunc

Func _exit()
    Exit
EndFunc

if you get the messagebox you mistyped the title...


CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map

Share this post


Link to post
Share on other sites

Thanks all

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