Skip to content

Instantly share code, notes, and snippets.

@tyrcho
Created March 5, 2015 22:05
Show Gist options
  • Save tyrcho/e2aa9ce348d827bacb0e to your computer and use it in GitHub Desktop.
Save tyrcho/e2aa9ce348d827bacb0e to your computer and use it in GitHub Desktop.
Clash of Clans easy deploy with AutoHotKeys
#IfWinActive, BlueStacks
x1 := 240
x11 := 1200
y := 770
Deploy(i)
{
global
BlockInput, On
MouseGetPos, xpos, ypos
GetKeyState, state, LButton
SetMouseDelay, 0
Click Up
local x := (x1 + (x11 - x1) * i / 10)
MouseMove x, y
Click Down
Click Up
MouseMove, %xpos%, %ypos%
if state = D
Click Down
BlockInput, Off
}
F1::
Deploy(0)
return
F2::
Deploy(1)
return
F3::
Deploy(2)
return
F4::
Deploy(3)
return
F5::
Deploy(4)
return
F6::
Deploy(5)
return
F7::
Deploy(6)
return
F8::
Deploy(7)
return
F9::
Deploy(8)
return
F10::
Deploy(9)
return
F11::
Deploy(10)
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment