Jump to content

Recommended Posts

Posted

look here is my script

HotKeySet("{ESC}", "Terminate")
While 1
If WinExists("NETI - Eesti Interneti Kataloog ja Otsingusüsteem - Mozilla Firefox") Then 
WinClose("NETI - Eesti Interneti Kataloog ja Otsingusüsteem - Mozilla Firefox")
MsgBox(16, "Halt!", "No internet for you!") 
EndIf 
WEnd

and it gives me an error on hotkeyset line :)

what have i done wrong?

Posted

You did not create a "Terminate" function

HotKeySet("{ESC}", "Terminate")
While 1
If WinExists("NETI - Eesti Interneti Kataloog ja Otsingusüsteem - Mozilla Firefox") Then
WinClose("NETI - Eesti Interneti Kataloog ja Otsingusüsteem - Mozilla Firefox")
MsgBox(16, "Halt!", "No internet for you!")
EndIf
WEnd

Func Terminate()
Exit
EndFunc

8)

NEWHeader1.png

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
×
×
  • Create New...