Guest User

Untitled

a guest
Sep 23rd, 2024
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | Source Code | 0 0
  1. #Requires AutoHotkey v2.0
  2. ; Define the key combo (Ctrl + Alt + T in this case)
  3. ^+s::
  4. {
  5. ; Get the mouse position
  6. MouseGetPos(&x, &y)
  7.  
  8. ; Set the tooltip content
  9. tooltipText := "
  10. (
  11. tyvm - Thank you very much!
  12. addr - my address
  13. ty - Thank you!
  14. phone - my phone
  15. /today -
  16. /greet -
  17. brb - Be right back
  18. fc converts F to C
  19. Hold WIN - Powertoys Shortcuts
  20. Middle Click - Favs
  21. Ctrl Shift C - Paste ALL CAPS
  22.  
  23. ========
  24. PREMIERE PRO
  25. ========
  26. Ctrl Shift D - New white matte
  27.  
  28. ========
  29. CHROME
  30. ========
  31. Ctrl Shift D - New Request
  32. )"
  33.  
  34.  
  35. ; Show tooltip at the mouse position
  36. ToolTip(tooltipText, x + 10, y + 10)
  37.  
  38. ; Keep showing the tooltip until the keys are released
  39. While GetKeyState("Ctrl", "P") && GetKeyState("Shift", "P") && GetKeyState("s", "P")
  40. {
  41. Sleep(1000) ; Slight delay to prevent high CPU usage
  42. }
  43.  
  44. ; Hide the tooltip when the keys are released
  45. ToolTip("")
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment