Jump to content

Recommended Posts

Posted

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

Posted

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.


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

Posted

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

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
  • Recently Browsing   0 members

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