Skip to content

Instantly share code, notes, and snippets.

@Glaived
Last active March 12, 2023 05:35
Show Gist options
  • Save Glaived/4e65be769ac178f69fb7b4d8064d0fcc to your computer and use it in GitHub Desktop.
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
#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
@Vintokaya245
Copy link

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