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
well its easy enough to find out, use the on key press to capture the value, and use the value it outputs.
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.
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.
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