Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- F12::
- toggle := !toggle
- if (toggle = 1){
- TrayTip Layer 1, KEYBOARD LAYER # 1
- sleep 1000
- HideTrayTip()
- } else {
- TrayTip Layer 0, KEYBOARD LAYER # 0
- sleep 1000
- HideTrayTip()
- }
- return
- HideTrayTip() {
- TrayTip ; Attempt to hide it the normal way.
- if SubStr(A_OSVersion,1,3) = "10." {
- Menu Tray, NoIcon
- Sleep 200 ; It may be necessary to adjust this sleep.
- Menu Tray, Icon
- }
- }
- ;layer 0 = default, layer 1 should have custom functionality when needed
- #If (toggle = 1)
- ;specific functionality here
- #If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement