Jump to content

Isues with hotkeying a func =/ (probably a simple mistake )


Recommended Posts

So.... i do all kinds of scripts usualy, and i dont usualy have a problem.... but i've been asked to do something really easy today and i cant figure out why it wont execute the func =/

HotKeySet("{F}", "Jump")


While 1
Sleep(100)
WEnd

Func Jump()
Send("{w down}")
Send("{Space}")
Send("{w up}")
EndFunc

all i want to do, is to press W hold it down, then press Spacebar and release both of them... the func itself should be right... thing is... it wont execute it =/ ( Jump in the hotkeyset is Grey and func Jump is plain black ( in SciTE ) if that helps )

Link to comment
Share on other sites

So.... i do all kinds of scripts usualy, and i dont usualy have a problem.... but i've been asked to do something really easy today and i cant figure out why it wont execute the func =/

HotKeySet("{F}", "Jump")
While 1
Sleep(100)
WEnd

Func Jump()
Send("{w down}")
Send("{Space}")
Send("{w up}")
EndFunc

all i want to do, is to press W hold it down, then press Spacebar and release both of them... the func itself should be right... thing is... it wont execute it =/ ( Jump in the hotkeyset is Grey and func Jump is plain black ( in SciTE ) if that helps )

Wow... it was a simple mistake... lol @ HotKeySet("{F}", "Jump") no such thing as {F} =) close this topic please

I feel like an idiot >< im gonna go to bed now haha

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...