Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6.  
  7.  
  8. ;CustomColor := "EEAA99" ; Can be any RGB color (it will be made transparent below).
  9. CustomColor := "000000" ; Can be any RGB color (it will be made transparent below). ; 000000 = black background
  10.  
  11. ;Gui +LastFound +AlwaysOnTop -Caption +Border +ToolWindow ; +ToolWindow avoids a taskbar button and an alt-tab menu item.
  12. Gui +LastFound +AlwaysOnTop +Border +ToolWindow ; +ToolWindow avoids a taskbar button and an alt-tab menu item. ; I modified copied the ablove line then (removed) (-Caption) from it, this revelas the Title Bar and allws the GUI to be draggable.
  13.  
  14. Gui, Color, %CustomColor%
  15. ;Gui, Font, s12 ; Set font size (12-point).
  16. Gui, Font, s10 ; Set font size (10-point).
  17. ;Gui, Add, Text, Center vMyText cLime, 105 YYYYY ; XX & YY serve to auto-size the window.
  18. Gui, Add, Text, Center vMyText cLime, XXXXXX YYYYYY ; XX & YY serve to auto-size the window.
  19.  
  20. ; Make all pixels of this color transparent and make the text itself translucent (150):
  21. ;WinSet, TransColor, %CustomColor% 255 ;0-255 sets the transparancy level
  22.  
  23. SetTimer, UpdateOSD, 200
  24. Gosub, UpdateOSD ; Make the first update immediate rather than waiting for the timer.
  25.  
  26. ;Gui, Show, x1700 y1000 NoActivate ; NoActivate avoids deactivating the currently active window.
  27. Gui, Show, NoActivate ; NoActivate avoids deactivating the currently active window.
  28.  
  29. return
  30.  
  31. GuiSize:
  32. GuiControl, MoveDraw, WinText, x0 w%A_GuiWidth%
  33.  
  34.  
  35. UpdateOSD:
  36. MouseGetPos, MouseX, MouseY
  37. GuiControl,, MyText,X: %MouseX% | Y: %MouseY%
  38.  
  39. return
  40.  
  41. GuiClose: ; User closed the window.
  42. ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement