diff --git a/Alien Swarm - Macro GUI.ahk b/Alien Swarm - Macro GUI.ahk index c2c9a6f..fca336d 100644 --- a/Alien Swarm - Macro GUI.ahk +++ b/Alien Swarm - Macro GUI.ahk @@ -168,61 +168,64 @@ LaunchEmoteGUI: { While (GetKeyState(KeyBind)) { - if emotegui = -1 + IfWinActive ahk_exe reactivedrop.exe { - MouseGetPos, CurrentPosX, CurrentPosY - MouseMove, %CenterX%, %CenterY% - emotegui = 1 - } - MouseGetPos, CurrentEmoteX, CurrentEmoteY - ResetEmoteGUI() - if CurrentEmoteX < 750 - { - if CurrentEmoteY < 400 - { - GuiControl, EmoteGUI:MoveDraw, PICTL, w100 h100 x0 y0 - } - else if CurrentEmoteY > 500 - { - GuiControl, EmoteGUI:MoveDraw, PICBL, w100 h100 x0 y200 - } - else + if emotegui = -1 { - GuiControl, EmoteGUI:MoveDraw, PICML, w100 h100 x0 y100 + MouseGetPos, CurrentPosX, CurrentPosY + MouseMove, %CenterX%, %CenterY% + emotegui = 1 } - } - else if CurrentEmoteX > 850 - { - if CurrentEmoteY < 400 - { - GuiControl, EmoteGUI:MoveDraw, PICTR, w100 h100 x200 y0 - } - else if CurrentEmoteY > 500 - { - GuiControl, EmoteGUI:MoveDraw, PICBR, w100 h100 x200 y200 - } - else - { - GuiControl, EmoteGUI:MoveDraw, PICMR, w100 h100 x200 y100 - } - } - else - { - if CurrentEmoteY < 400 + MouseGetPos, CurrentEmoteX, CurrentEmoteY + ResetEmoteGUI() + if CurrentEmoteX < 750 { - GuiControl, EmoteGUI:MoveDraw, PICTM, w100 h100 x100 y0 + if CurrentEmoteY < 400 + { + GuiControl, EmoteGUI:MoveDraw, PICTL, w100 h100 x0 y0 + } + else if CurrentEmoteY > 500 + { + GuiControl, EmoteGUI:MoveDraw, PICBL, w100 h100 x0 y200 + } + else + { + GuiControl, EmoteGUI:MoveDraw, PICML, w100 h100 x0 y100 + } } - else if CurrentEmoteY > 500 + else if CurrentEmoteX > 850 { - GuiControl, EmoteGUI:MoveDraw, PICBM, w100 h100 x100 y200 + if CurrentEmoteY < 400 + { + GuiControl, EmoteGUI:MoveDraw, PICTR, w100 h100 x200 y0 + } + else if CurrentEmoteY > 500 + { + GuiControl, EmoteGUI:MoveDraw, PICBR, w100 h100 x200 y200 + } + else + { + GuiControl, EmoteGUI:MoveDraw, PICMR, w100 h100 x200 y100 + } } else { - ; GuiControl, EmoteGUI:MoveDraw, PICMM, w100 h100 x100 y100 + if CurrentEmoteY < 400 + { + GuiControl, EmoteGUI:MoveDraw, PICTM, w100 h100 x100 y0 + } + else if CurrentEmoteY > 500 + { + GuiControl, EmoteGUI:MoveDraw, PICBM, w100 h100 x100 y200 + } + else + { + ; GuiControl, EmoteGUI:MoveDraw, PICMM, w100 h100 x100 y100 + } } + Gui, EmoteGUI:Show, NoActivate + Sleep, 50 } - Gui, EmoteGUI:Show, NoActivate - Sleep, 50 } @@ -285,61 +288,64 @@ LaunchOnslGUI: { While (GetKeyState(KeyBind)) { - if onslgui = -1 + IfWinActive ahk_exe reactivedrop.exe { - MouseGetPos, CurrentPosX, CurrentPosY - MouseMove, %CenterX%, %CenterY% - onslgui = 1 - } - MouseGetPos, CurrentOnslX, CurrentOnslY - ResetOnslGUI() - if CurrentOnslX < 750 - { - if CurrentOnslY < 400 - { - GuiControl, OnslGUI:MoveDraw, PICTL, w100 h100 x0 y0 - } - else if CurrentOnslY > 500 - { - GuiControl, OnslGUI:MoveDraw, PICBL, w100 h100 x0 y200 - } - else + if onslgui = -1 { - GuiControl, OnslGUI:MoveDraw, PICML, w100 h100 x0 y100 + MouseGetPos, CurrentPosX, CurrentPosY + MouseMove, %CenterX%, %CenterY% + onslgui = 1 } - } - else if CurrentOnslX > 850 - { - if CurrentOnslY < 400 - { - GuiControl, OnslGUI:MoveDraw, PICTR, w100 h100 x200 y0 - } - else if CurrentOnslY > 500 - { - GuiControl, OnslGUI:MoveDraw, PICBR, w100 h100 x200 y200 - } - else - { - GuiControl, OnslGUI:MoveDraw, PICMR, w100 h100 x200 y100 - } - } - else - { - if CurrentOnslY < 400 + MouseGetPos, CurrentOnslX, CurrentOnslY + ResetOnslGUI() + if CurrentOnslX < 750 { - GuiControl, OnslGUI:MoveDraw, PICTM, w100 h100 x100 y0 + if CurrentOnslY < 400 + { + GuiControl, OnslGUI:MoveDraw, PICTL, w100 h100 x0 y0 + } + else if CurrentOnslY > 500 + { + GuiControl, OnslGUI:MoveDraw, PICBL, w100 h100 x0 y200 + } + else + { + GuiControl, OnslGUI:MoveDraw, PICML, w100 h100 x0 y100 + } } - else if CurrentOnslY > 500 + else if CurrentOnslX > 850 { - GuiControl, OnslGUI:MoveDraw, PICBM, w100 h100 x100 y200 + if CurrentOnslY < 400 + { + GuiControl, OnslGUI:MoveDraw, PICTR, w100 h100 x200 y0 + } + else if CurrentOnslY > 500 + { + GuiControl, OnslGUI:MoveDraw, PICBR, w100 h100 x200 y200 + } + else + { + GuiControl, OnslGUI:MoveDraw, PICMR, w100 h100 x200 y100 + } } else { - ; GuiControl, OnslGUI:MoveDraw, PICMM, w100 h100 x100 y100 + if CurrentOnslY < 400 + { + GuiControl, OnslGUI:MoveDraw, PICTM, w100 h100 x100 y0 + } + else if CurrentOnslY > 500 + { + GuiControl, OnslGUI:MoveDraw, PICBM, w100 h100 x100 y200 + } + else + { + ; GuiControl, OnslGUI:MoveDraw, PICMM, w100 h100 x100 y100 + } } + Gui, OnslGUI:Show, NoActivate + Sleep, 50 } - Gui, OnslGUI:Show, NoActivate - Sleep, 50 } diff --git a/Alien Swarm - Macro GUI.exe b/Alien Swarm - Macro GUI.exe index 80fc131..a4856b2 100644 Binary files a/Alien Swarm - Macro GUI.exe and b/Alien Swarm - Macro GUI.exe differ