
새 Windows 8 컴퓨터에서 Visual Studio 2012가 활성 창일 때(Visual Studio가 활성 창일 때만) AutoHotkey는 키 입력을 캡처하지 않습니다. Windows 7의 VS2010에서는 이 문제가 발생하지 않았습니다.
AutoHotkey가 VS2012보다 우선하도록 하려면 어떻게 해야 합니까?
다음은 .ahk 파일의 스크립트입니다:
;;;; 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
}
답변1
이는 Visual Studio와 AutoHotKey를 서로 다른 권한 수준에서 실행하기 때문입니다. VS를 관리자로 실행하고 AHK를 사용자(로그인한 사용자)로 실행하고 있을 가능성이 높습니다. 동일한 권한 수준에서 둘 다 실행하는 것이 좋습니다. 그러면 문제가 해결될 것입니다.