Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. F12::
  2. toggle := !toggle
  3. if (toggle = 1){
  4. TrayTip Layer 1, KEYBOARD LAYER # 1
  5. sleep 1000
  6. HideTrayTip()
  7. } else {
  8. TrayTip Layer 0, KEYBOARD LAYER # 0
  9. sleep 1000
  10. HideTrayTip()
  11. }
  12. return
  13.  
  14. HideTrayTip() {
  15. TrayTip ; Attempt to hide it the normal way.
  16. if SubStr(A_OSVersion,1,3) = "10." {
  17. Menu Tray, NoIcon
  18. Sleep 200 ; It may be necessary to adjust this sleep.
  19. Menu Tray, Icon
  20. }
  21. }
  22.  
  23. ;layer 0 = default, layer 1 should have custom functionality when needed
  24. #If (toggle = 1)
  25. ;specific functionality here
  26.  
  27. #If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement