I uses autohotkey to play starcraft II
it works pretty well for 5 days
then suddenly, it fails
not a single remap works in starcraft II full screen
but it still works on windows, when i am not playing, or when i alt-tab to window desktop
I try to reinstall autohotkey, but still the same
anyone knows how to solve this ?
thank you very very much
Best regards.
autohotkey suddenlly fails in starcraft II full screen
Started by
Help
, Apr 13 2012 05:20 PM
2 replies to this topic
#1
-
Posted 13 April 2012 - 05:20 PM
Posting your code usually helps us help you... My guess? Your code holds a #IfWin directive or something similar, and probably the window title changes when maximized.
#2
-
Posted 13 April 2012 - 06:03 PM
Let us not be lazy. Someday it might just kill us.
thank you very much,Posting your code usually helps us help you... My guess? Your code holds a #IfWin directive or something similar, and probably the window title changes when maximized.
and this is my code
PS: I tried another full window game Diablo3, and autohotkey works,
the circustance that it only fails in starcraft II makes me wondering that
if starcraft II somehow blocks autohotkeys
because the game company sells an expensive keyboard offically supporting macros
but since i am not capible of judging if my code causes it
this is just my guess
XButton2::Shift XButton1::Ctrl F5::[ F6::] WheelDown:: if not GetKeyState("LButton") ; i.e. the right mouse button isn't down yet. Send {Shift Down} SetMouseDelay 10 Send {LButton Down} SetMouseDelay 10 Send {LButton Up} SetMouseDelay 10 Send {LButton Down} SetMouseDelay 10 Send {LButton Up} SetMouseDelay 10 Send {LButton Down} SetMouseDelay 10 Send {LButton Up} SetMouseDelay 10 Send {LButton Down} SetMouseDelay 10 Send {LButton Up} SetMouseDelay 10 Send {LButton Down} SetMouseDelay 10 Send {LButton Up} SetMouseDelay 10 Send {LButton Down} SetMouseDelay 10 Send {LButton Up} Send {Shift Up} return WheelUp:: Send {Space Down} SetMouseDelay 10 Send {Space} SetMouseDelay 10 Send {Space} SetMouseDelay 10 Send {Space} SetMouseDelay 10 Send {Space} SetMouseDelay 10 Send {Space} SetMouseDelay 10 +c:: MouseGetPos, xpos, ypos MouseMove,575,890,0 Send {Shift Down} Send {LButton Down} Send {LButton Up} Send {Shift Up} MouseMove,xpos, ypos ,0
#3
-
Posted 14 April 2012 - 02:33 AM