Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Context Menu Trigger in QM
#2
Found this in Archive.
Macro GetPathsOfSelectedFiles
Code:
Copy      Help
;Displays full paths of selected files and folders in Windows Explorer.

;find Windows Explorer window
int hwnd=win("" "CabinetWClass")
if(!hwnd) end "folder window not found"
;Get ShellBrowserWindow interface by enumerating shell windows
SHDocVw.ShellWindows sw._create
SHDocVw.ShellBrowserWindow b
foreach(b sw)
,int hwnd2=b.HWND; err continue
,if(hwnd=hwnd2) goto g1
ret
;g1
;get shell folder view document
Shell32.ShellFolderView sfw=b.Document
Shell32.FolderItem fi
;enumerate selected items
foreach fi sfw.SelectedItems
,out fi.Path

But it does not support multiple tabs in Explorer. May use wrong tab. The LA class supports it.

---

ShowMenu does not support "Edit menu item".

---

See also: Nilesoft Shell. Modify Explorer context menu


Messages In This Thread
Context Menu Trigger in QM - by Davider - 08-17-2026, 11:11 PM
RE: Context Menu Trigger in QM - by Gintaras - 08-18-2026, 07:13 AM
RE: Context Menu Trigger in QM - by Davider - 08-18-2026, 09:45 AM
RE: Context Menu Trigger in QM - by Davider - 08-19-2026, 02:32 AM
RE: Context Menu Trigger in QM - by Gintaras - 08-19-2026, 03:43 AM
RE: Context Menu Trigger in QM - by Davider - 08-19-2026, 03:49 AM
RE: Context Menu Trigger in QM - by Davider - 08-19-2026, 05:19 AM
RE: Context Menu Trigger in QM - by Gintaras - 08-19-2026, 06:57 AM
RE: Context Menu Trigger in QM - by Davider - 08-19-2026, 11:43 PM
RE: Context Menu Trigger in QM - by Gintaras - Yesterday, 03:57 AM
RE: Context Menu Trigger in QM - by Davider - Yesterday, 11:48 AM
RE: Context Menu Trigger in QM - by Gintaras - Yesterday, 01:51 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)