Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Automates adding a toolbar to the taskbar in Windows
- #SingleInstance force
- ; Change to the folder path to your toolbar
- toolbarPath=OneDrive\System\Actions
- ControlGet, handle, Hwnd,, TrayClockWClass1,,Notification Area
- ControlClick, ,ahk_id %handle% ,,Right
- WinWait,ahk_class #32768,,5
- if ErrorLevel
- {
- MsgBox,Context Menu not found after 5 seconds
- Exit
- }
- Sleep,400
- Send,T{Enter}N
- WinWaitActive,New Toolbar,,10
- if ErrorLevel
- {
- MsgBox,New Toolbar Window not found after 10 seconds
- Exit
- }
- Sleep,400
- Send,!d ; ALT+D
- Send,%toolbarPath%
- Send,{Enter}
- Sleep,400
- Send,+{Tab}+{Tab} ; SHIFT+TAB, SHIFT+TAB
- Sleep,400
- Send,{Enter}
- Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement