Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- s := 100
- d := 50 ; distance between items
- Loop {
- Sleep, 1000
- if (GetKeyState("CapsLock", "T")) {
- MouseGetPos, x0, y0
- ny := 0
- Loop, 5 {
- nx := 0
- Loop, 12 {
- if !(GetKeyState("CapsLock", "T")) {
- Break, 2
- }
- ; Merge step
- Loop, 2 {
- MouseMove, x0+nx*d, y0+ny*d, 100
- Sleep, s
- Send {d}
- Sleep, s
- }
- nx++
- }
- ny++
- }
- MouseMove, x0, y0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement