Advertisement
DevTricks

Switcher нажатие клавиши на клик мыши

Dec 13th, 2021
2,209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CoordMode, ToolTip, Screen  ; Отображение ToolTip'a относительно рабочего стола.
  2.  
  3. sw = 0
  4.  
  5. F1::
  6.   if (sw = 0)
  7.   {
  8.     ToolTip, Script ON ,50, 100
  9.     SetTimer, RemoveToolTip, -2000
  10.     sw = 1
  11.   }
  12.   else
  13.   {
  14.     ToolTip, Script OFF ,50, 100
  15.     SetTimer, RemoveToolTip, -2000
  16.       sw = 0
  17.   }
  18. return
  19.  
  20. ~LButton::
  21.   if (sw = 1)
  22.   {
  23.     Send {sc25 down}
  24.     Sleep 1
  25.     Send {sc25 up}
  26.   }
  27. Return
  28.  
  29. ~MButton::
  30.   if (sw = 1)
  31.   {
  32.     Send {sc25 down}
  33.     Sleep 1
  34.     Send {sc25 up}
  35.   }
  36. Return
  37.  
  38. F2:: ExitApp
  39.  
  40. -------------------------------------
  41. RemoveToolTip: ;Удаление подсказки
  42. ToolTip
  43. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement