First, it simply renders the key useless - I want to restore my missing Apps key! Second, the Office key does not actually act like a modifier key, at least not on my Microsoft Bluetooth Desktop keyboard - pressing and holding the key will spam LControl Down, LAlt Down, LShift Down, and LWin Down repeatedly until the key is released (at which point one Up is sent for each). However, I found two downsides to the method above. Personal note: On my system, I found I don't need the Send line - simply ending with "return" was enough to stop Office from launching. I removed the RWin line from the original code, as it is redundant - the Office key only sends LWin. So I have an ahk global hotkey to send the keepass global hotkey. The whole point of this is I want to use the win key to open the keepass window, and keepass doesn't let you set the win key. This happens even if I change keepass's global hotkey. But keepass always triggers the office app when I try to use ahk to trigger it's hotkey. I have all sorts of other global hotkeys set with ahk and they all work just fine. Maybe keepass is doing something weird with it's own global hotkey? Now win 2 does not launch the office app. However, if I try to use ctrl alt shift k itself, it opens keepass without launching the office app. Since win k kept launching the office app, I tried changing the hotkey to other combinations.Įvery single hotkey I tried to use to send the global hotkey ctrl alt shift k to open keypass would launch the office app. You know what? I think something else is going on here. cmd just ignores it, but notepad gives a warning that "Officekey.txt" does not exist. It always passes the parameter Officekey. Unfortunately, it seems the Office shortcut only uses this registry value to locate the Office app, and does not use any parameters that may be set. For the other Office apps, I'm guessing some other "ms-" URI schemes would be used, like "ms-powerpoint". This also affects what happens when you run ms-officeapp. Use HKCU\SOFTWARE\Classes\ms-officeapp\shell\open\command instead to affect only the current user. In my case, the HKCR\ms-officeapp\shell and HKCR\ms-officeapp\shell\open keys did not exist (presumably because I removed the Office app), so I created them first. Just set the default value of the registry key HKCR\ms-officeapp\shell\open\command to the path of a program, or the name of a program which the shell can locate, such as cmd. By using Process Monitor, I have found another way to prevent Win Ctrl Alt Shift from opening the Office app or website: make it open some other program.
0 Comments
Leave a Reply. |