Skip to content

Instantly share code, notes, and snippets.

@LeeHanYeong
Created October 22, 2018 08:27
Show Gist options
  • Save LeeHanYeong/706d990ac8e5ddec2ab544771c1aa119 to your computer and use it in GitHub Desktop.
Save LeeHanYeong/706d990ac8e5ddec2ab544771c1aa119 to your computer and use it in GitHub Desktop.
ScaleDown Script
global AppName := "LDPlayer"
global WindowWidth := 960
global WindowHeight := 720
FocusWindow() {
if (!WinExist(AppName)) {
MsgBox, "Start Emulator first"
return
}
WinActivate, %AppName%
WinMove, %AppName%, , 0, 0, %WindowWidth%, %WindowHeight%
WinGetPos, X, Y, Width, Height, %AppName%
}
ScaleDown() {
Loop, 15 {
random, posX, 500, 600
random, posY, 500, 600
MouseClick, WheelDown, posX, posY
random, sleep, 100, 300
Sleep, sleep
}
}
F6::
{
ScaleDown()
}
return
F7::
{
Reload
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment