AutoHotkey erfasst keine Tastenanschläge, wenn VS2012 ein aktives Fenster ist

AutoHotkey erfasst keine Tastenanschläge, wenn VS2012 ein aktives Fenster ist

Wenn Visual Studio 2012 auf meinem neuen Windows 8-Rechner das aktive Fenster ist (und nur wenn Visual Studio das aktive Fenster ist), erfasst AutoHotkey keine Tastenanschläge. Mit VS2010 unter Windows 7 hatte ich dieses Problem nicht.

Wie kann ich erreichen, dass AutoHotkey Vorrang vor VS2012 erhält?

Hier ist das Skript aus der .ahk-Datei:

;;;; Spotify! ;;;;

SetTitleMatchMode 2 

; "WindowKey + F11"  for previous 
#F11::
DetectHiddenWindows, On 
ControlSend, ahk_parent, ^{Left}, ahk_class SpotifyMainWindow 
DetectHiddenWindows, Off 
return 


; "WindowKey + F12"  for next 
#F12::
{ 
DetectHiddenWindows, On 
ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow 
DetectHiddenWindows, Off 
return 
} 

; "WindowKey + F10"  for pause
#F10::
{ 
DetectHiddenWindows, On 
ControlSend, ahk_parent, {space}, ahk_class SpotifyMainWindow 
DetectHiddenWindows, Off 
return 
} 

Antwort1

Das liegt daran, dass Sie Visual Studio und AutoHotKey mit unterschiedlichen Berechtigungsstufen ausführen. Sie führen VS höchstwahrscheinlich als Administrator aus, aber AHK als Sie (der angemeldete Benutzer). Ich schlage vor, beide mit derselben Berechtigungsstufe auszuführen, und Ihr Problem wird behoben.

verwandte Informationen