IContextMenu::InvokeCommand in a separate thread

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
User avatar
crystalidea
Posts: 205
Joined: 09 Dec 2005, 15:13
Contact:

Re: IContextMenu::InvokeCommand in a separate thread

Post by crystalidea »

Do you also execute 'IContextMenu::InvokeCommand' when a user does a simple double click or presses Enter on executable file?
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: IContextMenu::InvokeCommand in a separate thread

Post by Jan Rysavy »

Yes, it is what Windows Explorer and Altap Salamander does.

Edit: it is possible to execute from another process - http://www.altap.cz/salamander/help/sal ... ion_gener/ - Open files through salopen.exe (it bypasses shell extensions errors).
But I would not recommend this option when you have no problem, it is a little hackish. Also note salopen.exe will execute through IContextMenu::InvokeCommand, just from different process.
User avatar
crystalidea
Posts: 205
Joined: 09 Dec 2005, 15:13
Contact:

Re: IContextMenu::InvokeCommand in a separate thread

Post by crystalidea »

Yes, it does the trick. Though works a little weird: when I clicked on .exe nothing happened, after 10-15 seconds iTunes installer appeared ...
Jan Rysavy
ALTAP Staff
ALTAP Staff
Posts: 5231
Joined: 08 Dec 2005, 06:34
Location: Novy Bor, Czech Republic
Contact:

Re: IContextMenu::InvokeCommand in a separate thread

Post by Jan Rysavy »

Yes, this option is not recommended.
Post Reply