Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a AHK script with many shortcuts that I have been using for years now.

Most of them are based on the winkey, for example:

; visual studio
visualStudio  = ahk_class wndclass_desked_gsk|Afx:400000:8:10011|SWT_Window0
GroupAdd ,visualStudioGroup  ,%visualStudio%
  DetectHiddenWindows, %MyDetect%

When I use these shortcuts, sometimes, but not always, the new Windows 8.1 start screen will popup and then I have to press the shortcut again to get back to the application I wanted to go to.

I was wondering, Is this a known issue? Is there a way to fix it?

Thanks in Advance.

share|improve this question
Have you tried putting ahk_class wndclass_desked_gsk into its own group or calling it individually? It may be possible that the start menu is in one of the classes you've named. – Elliot DeNolf Nov 5 '13 at 13:32
@ElliotDeNolf Thanks. But it seems to not be the case. I have other groups with different classes that still do this. – Ben Nov 6 '13 at 7:33
up vote 3 down vote accepted

Is there a way to fix it?

You need run the script as administrator, add this strings at the top of your script:

#SingleInstance, Ignore
IfEqual, A_IsAdmin, % False, Run, % "*RunAs """A_ScriptFullPath """",, UseErrorLevel
IfEqual, A_IsAdmin, % False, ExitApp
; Your code below...
share|improve this answer
nice! Thanks! So only admins can override that start screen hotkey? wierd... – Ben Nov 7 '13 at 10:22
Your script should have the same rights of access that the active application, or higher (that better). – Grey Nov 7 '13 at 18:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .