Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

autohotkey suddenlly fails in starcraft II full screen


  • Please log in to reply
2 replies to this topic
Help
  • Guests
  • Last active:
  • Joined: --
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.

Ohnitiel
  • Members
  • 755 posts
  • Last active: Sep 08 2016 06:26 PM
  • Joined: 25 Aug 2011
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.
Let us not be lazy. Someday it might just kill us.

  • Guests
  • Last active:
  • Joined: --

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.

thank you very much,
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