Jump to content

Recommended Posts

Posted (edited)

how can i send a function with the command ispressed?

i.e:

While 1

If _IsPressed("41") Then

Send("_quit")

Sleep(1)

EndIf

Wend

Func _Quit()

Exit

i know how to do it with hotkey, but it's not working when i try it with ispressed

Edited by flick
Posted (edited)

While 1
If _IsPressed("41") Then _Quit()
Sleep(100)
WEnd

Func _Quit()
Exit
EndFunc

Edited by Swift
Posted

While 1
If _IsPressed("41") Then _Quit()
Sleep(100)
WEnd

Func _Quit()
Exit
EndFunc
ok, 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

Posted (edited)

flick - Post all of your code that is failing...

The mere snippet is inadequate for Swift fixing this new problem.

Edited by Squirrely1

Das Häschen benutzt Radar

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...