well i know all the ascii key codes but how to use them?
if i for example want to move imgBall 500 twips left if i press "d" , what should i write then? It just can't figure it out :confused:
Printable View
well i know all the ascii key codes but how to use them?
if i for example want to move imgBall 500 twips left if i press "d" , what should i write then? It just can't figure it out :confused:
It's a lot easier to use the keydown event, however, if you want to you keyascii try this
(considering keyascii letters start with a= 97)
form_keyascii
select case keycode(or whatever it is)
case 100
imgball.left = imgball.left - 500
end select
or you could set up a timer
form_keyascii
select case keycode
case 100
timer1.enabled = true
end select
timer1_timer
imgball.left = imgball.left - 500
110359
sorry it's actually under form_keypress