iverson_est Posted March 31, 2006 Share Posted March 31, 2006 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? Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted March 31, 2006 Share Posted March 31, 2006 u dont have the function terminate ..... Link to comment Share on other sites More sharing options...
Valuater Posted March 31, 2006 Share Posted March 31, 2006 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) Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted March 31, 2006 Moderators Share Posted March 31, 2006 (edited) If this is your complete script you have no function named TerminateEdit: got beat twice Edited March 31, 2006 by big_daddy Link to comment Share on other sites More sharing options...
iverson_est Posted March 31, 2006 Author Share Posted March 31, 2006 OMG it is probably because i've been up for 24h straight, forgot it, geez, thats was noobish, thanks Link to comment Share on other sites More sharing options...
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