Activating Win Key

elektrobank

Member
Joined
Aug 11, 2008
Messages
19
Programming Experience
10+
How can I activate the Windows Logo key in my program? Some have suggested to send Ctrl+Esc, but that just opens the Windows menu. I want to enter a combination of the Windows key and another key, such as Win+TAB. I can use Ctrl and Alt just fine, but I've been looking all over and have found nothing for the Win key. Any help??
 
I was using SendKeys.send for my other characters, but know that won't send the windows key, so I'm looking to see if there is there is any other method that will send it.
 
I guess the alternative would be the SendInput API. I'm sure a search would turn up examples of using it and you need to specify VK_LWIN or VK_RWIN for the left or right Windows key. I've never actually used it myself.
 
Back
Top