Sign in to follow this  
Followers 0
iverson_est

Wierd, Hotkeyset Error

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



u dont have the function terminate .....

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

If this is your complete script you have no function named Terminate

Edit: got beat twice :)

Edited by big_daddy

Share this post


Link to post
Share on other sites

OMG it is probably because i've been up for 24h straight, forgot it, geez, thats was noobish, thanks :)

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