SHARE
TWEET

QuickReaderPrototype1

a guest Aug 1st, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sConst = 6
  2.  
  3. Numpad4 & Numpad5::
  4. ; convenient keys on mouse, it does the thing when both are pressed
  5.     ; "LShift & Z" is also a pretty good condition, but not perfect
  6.  
  7. ; grab sel to clipboard, set 'text' to selected, reset clippy
  8. clipboardOld := Clipboard
  9. Send, ^c
  10. ToolTip, Hi!
  11. Sleep 10
  12. text := Clipboard
  13. Clipboard := clipboardOld
  14.  
  15. ; get array to loop through, and its length
  16. words := StrSplit(text, [".", ",", "`n", " "])
  17. wordLength := words.MaxIndex()
  18.  
  19. ; loop through words
  20. Loop {
  21.     ; go
  22.     str := words[A_Index]
  23.     sLen := StrLen(str)
  24.     ToolTip, %str%
  25.  
  26.     ; wait
  27.     sleepytime := 17 + (sConst * sLen)
  28.     sleep, sleepytime
  29.  
  30.     ; break when broken (idk what good and proper syntax in ahk is)
  31.     if (A_Index > wordLength)
  32.         break
  33. }
  34.  
  35. return
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top