Created
October 22, 2018 08:27
-
-
Save LeeHanYeong/706d990ac8e5ddec2ab544771c1aa119 to your computer and use it in GitHub Desktop.
ScaleDown Script
This file contains hidden or 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
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