menu, tray,tip ,Run my additional menu-script`nPress the Win-Z hotkey to show the menu.
TrayTip,how to, Press Window+Z to show the context menu
Menu, MyMenu, Add, Ping from Clipboard, MenuPingFromClipboardHandler
Menu, MyMenu, Icon, Ping from Clipboard, networkexplorer.dll, 1
Menu, MyMenu, Add, TCPing from Clipboard, MenuTCPingFromClipboardHandler
Menu, MyMenu, Icon, TCPing from Clipboard, networkexplorer.dll, 1
Menu, MyMenu, Add ; Add a separator line.
Menu, MyMenu, Add, Command Line, RunCMDHandler
Menu, MyMenu, Icon, Command Line, shell32.dll, 77
Menu, MyMenu, Add, Power Shell, RunPWSHHandler
Menu, MyMenu, Icon, Power Shell, shell32.dll, 77
Menu, MyMenu, Add, Putty, RunPuttyHandler
Menu, MyMenu, Icon, Putty, setupapi.dll, 24
;return ; End of script's auto-execute section.
MenuPingFromClipboardHandler:
;MsgBox You selected %A_ThisMenuItem% from the menu %A_ThisMenu%.
Run cmd.exe /c ping.exe -t %clipboard%
return
MenuTCPingFromClipboardHandler:
;MsgBox You selected %A_ThisMenuItem% from the menu %A_ThisMenu%.
Run cmd.exe /c tcping --color -b 3 -w 0.2 -i 0.1 -t %clipboard%
return
RunCMDHandler:
;MsgBox You selected %A_ThisMenuItem% from the menu %A_ThisMenu%.
Run cmd.exe
return
RunPWSHHandler:
;MsgBox You selected %A_ThisMenuItem% from the menu %A_ThisMenu%.
Run pwsh.exe
return
RunPuttyHandler:
;MsgBox You selected %A_ThisMenuItem% from the menu %A_ThisMenu%.
Run putty.exe
return
#z::Menu, MyMenu, Show ; i.e. press the Win-Z hotkey to show the menu.
autohotkey filename
@set FSIZE=14
@set FCOLOR=yellow
@set FFILE='C\:\\Windows\\Fonts\\verdana.ttf'
@set STRFO=%%x %%X
@set LTIME=drawtext="fontsize=%FSIZE%:fontcolor=%FCOLOR%:fontfile=%FFILE%:text='%%{localtime\:%STRFO%}':x=10:y=10"
timecode='00\:00\:00\:00'
, которая показывает сколько времени прошло. Но она не нужна, нужно локальное время и дата.'%{localtime\\: %Y-%m-%d%H-%M-%S}
, которая должна вывести Год, Месяц, День Час-Минуту-Секунду - выводит текст m-H-S