|
Post by sionrpg2 on Feb 14, 2005 20:20:12 GMT -5
I noticed that some of the codes were coded like CMD. (probably all) . I was wondering for example Sleep is: Send("/heal");
What would be for the following:
Holding a letter or button. A set time to hold it for.
direction pad commands:
please
|
|
|
Post by TinyTerror on Feb 14, 2005 20:27:56 GMT -5
|
|
|
Post by Kelpinn on Feb 17, 2005 8:23:39 GMT -5
I figured i'd write up a little something for us less experienced guys on this subject, concerning the issue of HOLDING DOWN a button, and also REPEATING a button several times.
In the event you're using a script to navigate and wanted to use it to move your character around, you could use the following command to hold down the characters that are used for your movement.
ex: {NUMPAD8} could be what you're using to move forward.
On compact keyboards like a laptop computer, you're probably using {W} to move forward.
So basically you can use the following command to hold down your movement keys in a script.
to HOLD DOWN a key:
Send("{NUMPAD8 down}"); -- in the case you're using the NUMPAD to navigate.
Send("w down"); -- in the case you're on a compact keyboard using the letters to navigate.
---
Now on the subject of repeating a key -- This could be used when you're programming your script with menu choices lets say. Or even if you're making a script for synthing and you need to repeat keystrokes.
Lets say for example you're going to open up your player's menu in your script, and wanted to scroll down to the 4th choice in the menu. You could use the repeat key to send out 4 x {DOWN}.
to REPEAT a key: (4 times lets say)
Send("{DOWN 4}"); -- would press the DOWN arrow 4 times
---
Anyways, I hope i'm helping out some of the newer guys like myself understand all the functions that are available to us.
Enjoy!
|
|
|
Post by TinyTerror on Feb 17, 2005 8:36:39 GMT -5
Thanks kelpinn!
|
|
|
Post by Kelpinn on Feb 17, 2005 10:16:25 GMT -5
No Problem Tiny, its my pleasure to help out !! A QUICK NOTE: about my earlier message, being somewhat new myself to helping out on forums, I forgot to explain how to RELEASE the button you've been holding down !! So here it is: After you use -- Send("{NUMPAD8 down}"); -- You will probably want to add a condition that has to be met before you release the button, but the command is basically this one: Send("{NUMPAD8 up}"); <-- this will release the key you've been holding down. Sorry about not including that one in my last post.
|
|