Last active
March 12, 2023 05:35
-
-
Save Glaived/4e65be769ac178f69fb7b4d8064d0fcc to your computer and use it in GitHub Desktop.
Allows you to move it via the keyboard (the arrows), for the game Albion Online
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
#Persistent ; Keeps a script permanently running (that is, until the user closes it or ExitApp is encountered). | |
#SingleInstance force | |
#if WinActive("ahk_exe Albion-Online.exe") | |
Up:: | |
SetDefaultMouseSpeed 0 | |
while GetKeyState("Up", "P") { | |
if (GetKeyState("Left", "P")) { | |
moveX = 910 | |
moveY = 423 | |
} else if (GetKeyState("Right", "P")) { | |
moveX = 1010 | |
moveY = 423 | |
} else { | |
moveX = 960 | |
moveY = 423 | |
} | |
click down, right, %moveX%, %moveY% | |
sleep 50 | |
} | |
click up, right | |
return | |
Down:: | |
SetDefaultMouseSpeed 0 | |
while GetKeyState("Down", "P") { | |
if (GetKeyState("Left", "P")) { | |
moveX = 910 | |
moveY = 523 | |
} else if (GetKeyState("Right", "P")) { | |
moveX = 1010 | |
moveY = 523 | |
} else { | |
moveX = 960 | |
moveY = 523 | |
} | |
click down, right, %moveX%, %moveY% | |
sleep 50 | |
} | |
click up, right | |
return | |
Right:: | |
SetDefaultMouseSpeed 0 | |
while GetKeyState("Right", "P") { | |
if (GetKeyState("Up", "P")) { | |
moveX = 1010 | |
moveY = 423 | |
} else if (GetKeyState("Down", "P")) { | |
moveX = 1010 | |
moveY = 523 | |
} else { | |
moveX = 1010 | |
moveY = 473 | |
} | |
click down, right, %moveX%, %moveY% | |
sleep 50 | |
} | |
click up, right | |
return | |
Left:: | |
SetDefaultMouseSpeed 0 | |
while GetKeyState("Left", "P") { | |
if (GetKeyState("Up", "P")) { | |
moveX = 910 | |
moveY = 423 | |
} else if (GetKeyState("Down", "P")) { | |
moveX = 910 | |
moveY = 523 | |
} else { | |
moveX = 910 | |
moveY = 473 | |
} | |
click down, right, %moveX%, %moveY% | |
sleep 50 | |
} | |
click up, right | |
return | |
#if |
how to i can using these script do you had any tutorial ???
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The coordinates are intended for a 1920x1080 screen, you can modify the coordinates to match your screen by using the following document :
https://docs.google.com/spreadsheets/d/12MWE0jIliaa0fqKufS6iQLVJMNbDEfjrHHCUIkpaIsA/edit?usp=sharing
The data to be modified has a green background.
Change
1920
and1080
to match your screen.50
is the margin to the center. A larger margin is a larger click square. A larger click square creates a delay between stopping the character and releasing the key.