2023.03.04
REF
[1] "[Solved] Simple File Browser - AutoHotkey Community"
[2] https://www.autohotkey.com/docs/v1/lib/Menu.htm
; ***** this is sub menu*****
; ***** sub menu should be ahead of main menu*****
Menu, FileMenu, Add, &Open Notepad`tCtrl+O, MenuFileOpen
Menu, FileMenu, Add, E&xit, MenuFileExit
Menu, EditMenu, Add, Copy`tCtrl+C, MenuHandler
Menu, EditMenu, Add, Past`tCtrl+V, MenuHandler
Menu, EditMenu, Add ; with no more options, this is a seperator
Menu, EditMenu, Add, Delete`tDel, MenuHandler
Menu, HelpMenu, Add, &About, MenuHandler
Menu, TestMenu, Add, &About, MenuTestAbout
; Attach the sub-menus that were created above.
Menu, MyMenuBar, Add, &File, :FileMenu
Menu, MyMenuBar, Add, &Edit, :EditMenu
Menu, MyMenuBar, Add, &Help, :HelpMenu
Menu, MyMenuBar, Add, &Test, :TestMenu
Gui, Menu, MyMenuBar ; Attach MyMenuBar to the GUI
gui, show, w200 h200
return
MenuHandler:
MsgBox, %A_ThisMenuItem%
return
MenuFileOpen:
run %windir%\system32\notepad.exe
return
MenuTestAbout:
run, https://www.google.com/
return
MenuFileExit:
ExitApp
return
GuiEscape:
GuiClose:
return
^ESC:: ExitApp
output screencapture
'[PA] 업무자동화 > [AH]Autohotkey' 카테고리의 다른 글
AH GUI file drag and drop (0) | 2023.03.06 |
---|---|
AH Gui control click했을 때 반응하기 (0) | 2023.03.05 |
AH 한명이 승인요청 중일 때 다른 사람이 요청하면 (0) | 2023.03.04 |
AH adding control in existing GUI (0) | 2023.03.04 |
AH GUI Text font 색깔 바꾸기 (0) | 2023.02.28 |