PDA

View Full Version : WINDOWS hotkeys



Erstam
July 28th, 2005, 08:50 AM
Hello everybody,

in G3 I have defined several hotkeys to launch applications. All hotkeys consist of the WIN key + a letter (e.g. WIN + i to launch Internet Explorer). I want to transfer these to G4b4.

in G3 these keys work fine, in G4 they do not only launch the application but also launch the Windows start menu. The start menu get's triggered by the Up event of the WIN key (code 5B00000LE). Here is the event log when I press WIN + i (first event is the bottommost). "490000L0 <DOWN>" is the code I assigned to the hotkey action event.



Keyboard 5B00000LE <UP>
Keyboard 4900000L0 <UP>
Internet Explorer Command executed
OSD Lua Success &#40;Nothing Triggered&#41;
Keyboard 4900000L0 <DOWN>
Keyboard 5B00000L0 <DOWN>


I only want to start the application and don't want to open the start menu. Does anyone know how I would do this?

Erstam

quixote
July 28th, 2005, 10:51 AM
Similarly, I had set up a macro to fire when I hit the sleep button on my Logitech MM keyboard. I had mapped it as "standby" and it was working fine for a while, but now all of the sudden it has started to initiate the logoff and go into standby mode. Very strange behaviour indeed, considering that there is nothing that I can think of that I may have changed.

Erstam
July 30th, 2005, 01:41 PM
If anyone wants to use WIN hotkeys as well, here is a solution for all hotkeys in combination with WIN to not open the start menu:

Since I used a statusmessage OSD to show what application I was launching anyway I simply blocked the WINDOWS <UP> key and unbocked it right after the OSD:


keyboard.AddBlockedKey&#40;'5B0000LE'&#41;
osd.StatusMessage&#40;'Internet Explorer'&#41;
keyboard.RemoveBlockedKey&#40;'5B0000LE'&#41;

After this scripting action I simply used a "OS - File Execute" action to launch the application I want.

Permanently blocking the WINDOWS <UP> key does not make sense, since I want this key to open the start menu when not using it as a hotkey.

Erstam