jcunews

PixelBlipper.ahk

Oct 18th, 2020
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;Pixel Blipper v1.0.1
  2. ;https://pastebin.com/u/jcunews
  3. ;https://www.reddit.com/user/jcunews1
  4. ;https://greasyfork.org/en/users/85671-jcunews
  5.  
  6. ;all time values are in milliseconds. 1 second = 1000ms.
  7.  
  8. ;time interval to show pixel. must be greater than zero.
  9. interval:= 60 * 1000
  10.  
  11. ;time duration to hide pixel after it has been shown. must be greater than zero.
  12. duration:= 100
  13.  
  14. ;size of pixel.
  15. size:= 1
  16.  
  17. ;level of pixel opacity. 0 to 255. 0 = invisible. 255 = visible.
  18. opacity:= 1
  19.  
  20. ;monitor number to show pixel. 0 to N.
  21. monitor:= 0
  22.  
  23. sysget m, monitor, %monitor%
  24. mright:= mright - size
  25. mbottom:= mbottom - size
  26. gui add, text, w0 h0
  27. gui +alwaysontop -caption +lastfound +toolwindow
  28. winset transparent, %opacity%
  29. gui color, black
  30. settimer show, %interval%
  31. return
  32.  
  33. show:
  34. gui show, % "noactivate x" mright " y" mbottom " w" size " h" size
  35. settimer hide, -%duration%
  36. return
  37.  
  38. hide:
  39. gui hide
  40. return
  41.  
  42. guiclose:
  43. guiescape:
  44. exitapp
  45.  
RAW Paste Data