Jump to content
Sign in to follow this  
fuzzayboy

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

Recommended Posts

fuzzayboy

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 )

Share this post


Link to post
Share on other sites
fuzzayboy

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

Share this post


Link to post
Share on other sites
Richard Robertson

Next time you realize something before anyone replies, you can delete your topic. I was hoping you would realize the problem before I got down here to reply. {F} is, yes, a pretty simple mistake.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.