I'm using "event_perform"
event_perform(ev_keyboard,ev_keypress#)So now I need it to press digit 2 (not keypad), but how do I do that ?
I have to change the # into something, but I don't know what
Please help ^^
Thanks
Posted 21 July 2008 - 04:04 PM
event_perform(ev_keyboard,ev_keypress#)So now I need it to press digit 2 (not keypad), but how do I do that ?
Posted 21 July 2008 - 04:08 PM
Posted 21 July 2008 - 04:09 PM
For the digit keys use for example ord('5') to get the <5> key.
Posted 21 July 2008 - 04:23 PM
Thanks ^^For the digit keys use for example ord('5') to get the <5> key.
Posted 21 July 2008 - 04:31 PM
The following routines can be used to manipulate the keyboard state:
keyboard_get_numlock() Returns whether the numlock is set.
keyboard_set_numlock(on) Sets (true) or unsets (false) the numlock.
keyboard_key_press(key) Simulates a press of the key with the indicated keycode.
keyboard_key_release(key) Simulates a release of the key with the indicated keycode.
0 members, 0 guests, 0 anonymous users