Jump to content

Recommended Posts

Posted

how do i make a script that will do something if i press the "1" key or if i press the "j" key?

i tried

while 1

select

case (guigetmsg() = "2")

filewrite("haha", "sup", 1)

endselect

wend

Rick rack ree, kick 'em in the knee.Rick rack rass, kick 'em in the other knee!

Posted

how do i make a script that will do something if i press the "1" key or if i press the "j" key?

i tried

while 1

select

case (guigetmsg() = "2")

filewrite("haha", "sup", 1)

endselect

wend

Well, the most direct way would be through the use of a hotkey.

HotKeySet("1","yourfunction1")

Func yourfunction1( )
     stuff when you press 1
EndFunc

Alternatively, if that isn't what you were looking for, you could use the _IsPressed( ) function. Consult the help file on how to use it. I know for a fact there are threads here on its use for exactly this purpose, because I've read them. So also do a forum search.

Posted

Well, the most direct way would be through the use of a hotkey.

HotKeySet("1","yourfunction1")

Func yourfunction1( )
     stuff when you press 1
EndFunc

Alternatively, if that isn't what you were looking for, you could use the _IsPressed( ) function. Consult the help file on how to use it. I know for a fact there are threads here on its use for exactly this purpose, because I've read them. So also do a forum search.

oh, i feel like such an idiot!!!!

Rick rack ree, kick 'em in the knee.Rick rack rass, kick 'em in the other knee!

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
  • Recently Browsing   0 members

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