Block windows key
-
Hi everyone. i wrote a little app which should check every button on the keyboard. when pressing a key the key image on the screen will disappear. In order to catch all the key strokes i use the PreTranslateMessage function When i press the windows key the start menu appears :doh: and then the PreTranslate function is called and the key disappears from the dialog. I want to block this behaviour, and only remove the button from the dialog thanks Simon.
-
Hi everyone. i wrote a little app which should check every button on the keyboard. when pressing a key the key image on the screen will disappear. In order to catch all the key strokes i use the PreTranslateMessage function When i press the windows key the start menu appears :doh: and then the PreTranslate function is called and the key disappears from the dialog. I want to block this behaviour, and only remove the button from the dialog thanks Simon.
Try registering the windows key as a hotkey to your application using the RegisterHotKey[^] api call. Might fail though, since RegisterHotKey fails if you try to register keys already assigned to some task by another application and i don't know how windows (or maybe explorer?) uses the windows key.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <