flick Posted March 11, 2008 Share Posted March 11, 2008 (edited) how can i send a function with the command ispressed?i.e:While 1 If _IsPressed("41") Then Send("_quit") Sleep(1) EndIf WendFunc _Quit() Exiti know how to do it with hotkey, but it's not working when i try it with ispressed Edited March 11, 2008 by flick Link to comment Share on other sites More sharing options...
Swift Posted March 11, 2008 Share Posted March 11, 2008 (edited) While 1 If _IsPressed("41") Then _Quit() Sleep(100) WEnd Func _Quit() Exit EndFunc Edited March 11, 2008 by Swift Link to comment Share on other sites More sharing options...
flick Posted March 11, 2008 Author Share Posted March 11, 2008 While 1 If _IsPressed("41") Then _Quit() Sleep(100) WEnd Func _Quit() Exit EndFuncok, so you don't need endif or send it's telling me "unknown func name" when i type in the function name i gave the function in my script Link to comment Share on other sites More sharing options...
Squirrely1 Posted March 11, 2008 Share Posted March 11, 2008 (edited) flick - Post all of your code that is failing... The mere snippet is inadequate for Swift fixing this new problem. Edited March 11, 2008 by Squirrely1 Das Häschen benutzt Radar Link to comment Share on other sites More sharing options...
Swift Posted March 11, 2008 Share Posted March 11, 2008 He got it fixed Squirrely, he PM'd me 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