I have a script to help display commonly-used information as menu items, so I can paste them into documents. (The script is at the end of this post).
But the built-in Windows 11 hotkeys are firing instead, messing up my AHK script. Is there any way to disable the specific Windows 11 hotkey associated with win-z, without disabling ALL Windows hotkeys?
Win-z is launching Microsoft's snap dialogue. But when I try using other hotkeys, they launch other Windows' hotkeys (e.g. Win-c launches a Microsoft Teams dialog).
Here's my script:
Code: Select all
Gui, Add, MonthCal, vVar2
Gui, Add, Button, xm w400, Done
Gui, Show,, Transaction
Return
ButtonDone:
Gui, Submit, Hide
#z::
FormatTime, Var2, %Var2%, M/d/yyyy
Menu scripts, Add, %Var2%, Execute
Menu scripts, Add, Postage, Execute
Menu scripts, Add, Stamps.com, Execute
Menu scripts, Add, Copies, Execute
Menu scripts, Add, Filing Fees, Execute
Loop Files, C:\Clients\Clip Box.txt, R
{ FileRead txt, % A_LoopFilePath
Menu scripts, Add, % StrSplit(txt, "`r")[10], Execute
}
Menu, scripts, Show
Return
Execute:
SendInput {Text}%A_ThisMenuItem%
Return