Windows 7 - invert selection, set details view/list view (trigger Explorer/Internet Explorer menu items) Topic is solved
Posted: 31 Jan 2017, 09:43
Windows 7: invert selection and set details/list view programmatically
Internet Explorer 11: save as
Well that's what happens when you never ever give up.
Useful link:
[huge ToolTip appears showing menu item IDs for context menu]
Get Info from Context Menu - Scripts and Functions - AutoHotkey Community
https://autohotkey.com/board/topic/1975 ... text-menu/
Btw if there is a window spy that can work on a context menu,
that would be really useful, the spies I came across,
need you to drag cross hairs onto the context menu, but that makes the menu disappear.
Code: Select all
q::
ControlGet, hCtl, Hwnd,, SHELLDLL_DefView1, A
PostMessage, 0x111, 28706, 0,, % "ahk_id " hCtl ;edit, invert selection
PostMessage, 0x111, 28747, 0,, % "ahk_id " hCtl ;view, details
PostMessage, 0x111, 28753, 0,, % "ahk_id " hCtl ;view, list
PostMessage, 0x111, 28705, 0,, % "ahk_id " hCtl ;edit, select all
PostMessage, 0x111, 31492, 0,, % "ahk_id " hCtl ;view, sort by, name
return
Code: Select all
;seems to work on both control types
;change NN in TabWindowClassNN / Shell DocObject ViewNN to refer to other tabs
q::
ControlGet, hCtl, Hwnd,, TabWindowClass1, A
ControlGet, hCtl, Hwnd,, Shell DocObject View1, A
PostMessage, 0x111, 258, 0,, % "ahk_id " hCtl ;file, save as...
return
Useful link:
[huge ToolTip appears showing menu item IDs for context menu]
Get Info from Context Menu - Scripts and Functions - AutoHotkey Community
https://autohotkey.com/board/topic/1975 ... text-menu/
Btw if there is a window spy that can work on a context menu,
that would be really useful, the spies I came across,
need you to drag cross hairs onto the context menu, but that makes the menu disappear.