Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sConst = 6
- Numpad4 & Numpad5::
- ; convenient keys on mouse, it does the thing when both are pressed
- ; "LShift & Z" is also a pretty good condition, but not perfect
- ; grab sel to clipboard, set 'text' to selected, reset clippy
- clipboardOld := Clipboard
- Send, ^c
- ToolTip, Hi!
- Sleep 10
- text := Clipboard
- Clipboard := clipboardOld
- ; get array to loop through, and its length
- words := StrSplit(text, [".", ",", "`n", " "])
- wordLength := words.MaxIndex()
- ; loop through words
- Loop {
- ; go
- str := words[A_Index]
- sLen := StrLen(str)
- ToolTip, %str%
- ; wait
- sleepytime := 17 + (sConst * sLen)
- sleep, sleepytime
- ; break when broken (idk what good and proper syntax in ahk is)
- if (A_Index > wordLength)
- break
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement