Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Key press question

Author
Message
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 18th Oct 2005 00:51
what code would i use to check if the F1,F2,F3... keys are pressed
Xenocythe
19
Years of Service
User Offline
Joined: 26th May 2005
Location: You Essay.
Posted: 18th Oct 2005 00:53
use this to find out, all you have to do is press the F2,F2,F3, etc. keys:

sync on
do
print scancode()
print keystate()
sync
loop
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 18th Oct 2005 01:16
thanks ill try it
Grossman
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Russia
Posted: 18th Oct 2005 01:36
Check out this:

1 = ESC
2..28 = 1..ENTER
29 = LEFTCTRL
30..40 = a..'
41 = `
42 = LEFTSHIFT
43 = [\|/]
44..53 = z..[/?.,]
54 = RIGHTSHIFT
55 = *
56 = LEFTALT
57 = SPACE
58 = CAPSLOCK
59..68 = F1..F10
69 = NUMLOCK
70 = SCROLLLOCK
71..73 = 7..9 (num)
74 = -
75..77 = 4..6 (num)
78 = +
79..81 = 1..3 (num)
82 = 0 (num)
83 = .

86 = [\|]
87 = F11
88 = F12
89 = MOUSE1
90 = MOUSE2

156 = ENTER (num)
157 = RIGHTCTRL

181 = /

183 = PRINTSCREEN
184 = RIGHTALT

197 = PAUSE

199 = HOME
200 = UPARROW
201 = PAGEUP

203 = LEFTARROW

205 = RIGHTARROW

207 = END
208 = DOWNARROW
209 = PAGEDOWN
211 = DELETE
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 18th Oct 2005 01:53 Edited at: 18th Oct 2005 01:54
nvm
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 18th Oct 2005 01:55
thanks TDK
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 18th Oct 2005 03:44
This is what I use... I got it from somebody here but I don't remember who from.

Attached to message: keystate.bmp

Attachments

Login to view attachments
Jerok
19
Years of Service
User Offline
Joined: 7th May 2005
Location: Mars. Wait a sec I\'m on MARS. OMG
Posted: 18th Oct 2005 03:58
thanks all for your help

Login to post a reply

Server time is: 2024-11-27 14:43:51
Your offset time is: 2024-11-27 14:43:51