Log in

View Full Version : What are the names of left, right, up and down arrow keys?



JAD
04-23-2007, 11:54 PM
Title says it all. I know you use like KeyDown(37) or whatever. Just wondering, which is up, which is down....etc.

Thanks in advance :D

danrox2004
04-24-2007, 12:23 AM
To press an arrow you use on of the arrow functions (SendArrowSilentWait, SendArrowWait, SendArrowSilent, SendArrow - you may need to check the names.. something like that). 0 is up, 1 is right, 2 is down, and 3 is left. For example SendArrowSilentWait(2, 300) would hold the down arrow for 300 ms

omgh4x0rz
04-24-2007, 01:22 AM
JAD, check out this ascii table. It might help in the future. The keycodes scar uses come from the Dec value, the column farthest to the left left.

http://www.asciitable.com/

JAD
04-24-2007, 01:53 AM
To press an arrow you use on of the arrow functions (SendArrowSilentWait, SendArrowWait, SendArrowSilent, SendArrow - you may need to check the names.. something like that). 0 is up, 1 is right, 2 is down, and 3 is left. For example SendArrowSilentWait(2, 300) would hold the down arrow for 300 ms

Can you just give me the names for the KeyDown things? I'm making my own custom function, and I have super top secret reasons for not being able to use that ;)

@Omg Thanks for that, just kind of confused me though.. :p

me_ntal
04-24-2007, 04:22 AM
Try Looking here jad

http://www.moparisthebest.com/smf/index.php/topic,2894.0.html

As far as the arrows
Left Arrow - 37
Up Arrow - 38
Right Arrow - 39
Down Arrow - 40

JAD
04-24-2007, 04:25 AM
Yes, I just found that 2 seconds before you posted that :p Thanks a lot for helping though mental :D

haz3
04-24-2007, 02:09 PM
well you can also call it the d-pad xD... nah, but those functions work too!