bit-tech.net

Go Back   bit-tech.net Forums > Technology > Software

Reply
 
Thread Tools
Old 29th Nov 2004, 18:17   #1
dire_wolf
Last Of The Dovakhiin
 
dire_wolf's Avatar
 
Join Date: Jul 2002
Location: UK
Posts: 2,433
dire_wolf should be considered for presidentdire_wolf should be considered for presidentdire_wolf should be considered for presidentdire_wolf should be considered for presidentdire_wolf should be considered for presidentdire_wolf should be considered for presidentdire_wolf should be considered for presidentdire_wolf should be considered for presidentdire_wolf should be considered for presidentdire_wolf should be considered for presidentdire_wolf should be considered for president
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
dire_wolf is offline   Reply With Quote
Old 29th Nov 2004, 20:46   #2
ellism
Supermodder
 
ellism's Avatar
 
Join Date: Sep 2003
Location: Ashford, UK
Posts: 347
ellism has yet to learn the way of the Dremel
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!
ellism is offline   Reply With Quote
Old 29th Nov 2004, 20:58   #3
DeX
Mube Codder
 
DeX's Avatar
 
Join Date: Jul 2002
Location: London, UK
Posts: 4,147
DeX has yet to learn the way of the Dremel
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.
DeX is offline   Reply With Quote
Old 30th Nov 2004, 01:49   #4
TheAnimus
Banned
 
TheAnimus's Avatar
 
Join Date: Dec 2003
Location: Reading
Posts: 3,214
TheAnimus has yet to learn the way of the Dremel
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.
TheAnimus is offline   Reply With Quote
Old 30th Nov 2004, 09:35   #5
djengiz
Pointless.
 
djengiz's Avatar
 
Join Date: Aug 2002
Location: Thongolia
Posts: 1,129
djengiz has yet to learn the way of the Dremel
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
djengiz is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:47.
Powered by: vBulletin Version 3
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.