|
|
#1 |
|
Last Of The Dovakhiin
Join Date: Jul 2002
Location: UK
Posts: 2,422
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Ascii value of windows key
Anyone know the ascii value of the windows key on your keyboard or any other way of reffering to it using inkey in vb6 ?
ta for the help in advance
__________________
"Don't Fear Citizens! TAD KNOWS HIS RAID!" - Bindi MAIN BOX E7400|HD5770|Viewsonic VX2260WM|Asus Xonar D2X|4GB Dominator|Samsung F3 1TB|Gigabyte GA-EP43-S3L WIN98/DOS GAMES BOX 1GHz P3 Coppermine|GF3 Ti500|Creative Live! 24-bit|256MB Rimm|WD 10GB HDD
|
|
|
|
|
|
#2 |
|
Supermodder
Join Date: Sep 2003
Location: Ashford, UK
Posts: 347
![]() |
well its easy enough to find out, use the on key press to capture the value, and use the value it outputs.
__________________
%48%45%58%20%69%74%27%73%20%67%6F%74%20%53%69%78%2 0%61%70%70%65%61%6C%00 I <3 Aquatuning & Enermax long time! |
|
|
|
|
|
#3 |
|
Mube Codder
Join Date: Jul 2002
Location: London, UK
Posts: 4,145
![]() |
Actually keys like the Windows key don't have an ASCII value. Only keys that are 'printable' have an ASCII value. To detect keys like the Windows key you have to use either the KeyDown or KeyUp events and use the KeyCode to detect which key was pressed. You can find the values for KeyCodes on MSDN.
__________________
Play my game: Shyguy's Cave of Death! If you dont have the time to check your spelling and grammar, you dont have the time to post! -Liquid K9 |
|
|
|
|
|
#4 |
|
Banned
Join Date: Dec 2003
Location: Reading
Posts: 3,214
![]() |
from memory, i swear i've got it of the WM_CHAR msg dex?
But if you're wanting to detect it, remeber its ment to be for hotkey type things, (user interface 101). So say u wanted windowskey + o to do something it would be best to use the RegisterHotKey function. |
|
|
|
|
|
#5 |
|
Pointless.
Join Date: Aug 2002
Location: Thongolia
Posts: 1,129
![]() |
On the KeyDown event its number 93 (in VB)
Private Sub txt_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 93 Then msgbox "93" End If End Sub |
|
|
|
![]() |
| Thread Tools | |
|
|