Warconn Posted March 22, 2009 Author Share Posted March 22, 2009 Hey so i was wondering what the Start button key code is. The start button is the button with the windows symbol on it. I have checked the keycodes for all the buttons, but i have not found this one anywhere. Does anyone here no what the keycode is?ThanksWarconn Link to comment Share on other sites More sharing options...
Marsh Posted March 22, 2009 Share Posted March 22, 2009 Not sure, but ttry 94 Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2009 Share Posted March 22, 2009 VK_LWIN = 0x5BVK_RWIN = 0x5CFirst one is the left one, second one is on the other side. Most keyboards only have one. Link to comment Share on other sites More sharing options...
Warconn Posted March 22, 2009 Author Share Posted March 22, 2009 alright, thanks do i have to dim thoughs at the top or no, just add that[EDIT]got it, adding it to mod constants ;)thanks for the help Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2009 Share Posted March 22, 2009 No, use it like this:If GetAsyncKeyState ( LWin ) Then msgbox "Left Windows key was pressed!"End IfI think, I dont use VB6 much. Link to comment Share on other sites More sharing options...
Warconn Posted March 22, 2009 Author Share Posted March 22, 2009 o alright, thanks, the adding it to the constants wasnt working, ill give this a shot.Thanks{EDIT}i have this```If GetAsyncKeyState(0x5B) Then MsgBox "Left Windows key was pressed!"End If```i have also tryed to have```VK_LWIN = 0x5BVK_RWIN = 0x5C```added above that code… but it didnt work, something with the X5B... Link to comment Share on other sites More sharing options...
Guest Posted March 22, 2009 Share Posted March 22, 2009 Try 5B, VK_LWin, or just LWin in as the GetAsyncKeyState parameter. I haven't used that function for Vb6 in ages D:. Obviously its not the same as for C++, cause you would use the hex like I showed. Link to comment Share on other sites More sharing options...
Warconn Posted March 22, 2009 Author Share Posted March 22, 2009 hmm well when i use the LWIN, i get variable not defined, when i try and define the var, i get "ERROR EXPECTED END OF STATMENT"I tryed the other ones you suggested, but they did not work aswell Link to comment Share on other sites More sharing options...
Warconn Posted March 22, 2009 Author Share Posted March 22, 2009 AHHH Marsh was almost correct, i tryed 91, and it worked perfectly, thanks for the push in the right direction ;) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now