PcExpert Posted May 16, 2006 Posted May 16, 2006 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
BigDod Posted May 16, 2006 Posted May 16, 2006 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
piccaso Posted May 16, 2006 Posted May 16, 2006 try thisHotKeySet("{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
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