Chris Ness wrote:
>
> All seems to be working fine now. Thanks Tim. Learning a lot here.
>
> Having a spot of bother with the context menu for a drive though
> (e.g."C:"). I'm getting a very minimal menu with Open, Manage, Include
> in Library, Copy and Properties. Choosing proprties brings up Co
On 3/03/2012 6:09 AM, Chris Ness wrote:
Also, the first article mentions OleInitialise(), which I tried but
pythoncom.OleInitialise() does not exist in the module (AttributeError),
despite what the docs say?
The function is spelt with a "z" rather than the "s":
>>> import pythoncom
>>> pythonc
On 02/03/2012 20:16, Tim Roberts wrote:
Chris Ness wrote:
I had decided not to use the command ID technique until I got things
working, so TPM_RETURNCMD was commented out when I defines flags. From
my understanding of MSDN and pywin32, this should make commands
immediately execute and cause Trac
Aah. It makes sense now. messages and such like. my lack of
knowledge of win32 shows.
I'll let you know how I get on.
Am I right in thinking the win32 api is awfull?
Chris.
On 02/03/2012 20:16, Tim Roberts wrote:
Chris Ness wrote:
I had decided not to use the command ID techniqu
Chris Ness wrote:
> I had decided not to use the command ID technique until I got things
> working, so TPM_RETURNCMD was commented out when I defines flags. From
> my understanding of MSDN and pywin32, this should make commands
> immediately execute and cause TrackPopupMenu to return an HRESULT?
Also, the first article mentions OleInitialise(), which I tried but
pythoncom.OleInitialise() does not exist in the module (AttributeError),
despite what the docs say?
Chris.
___
python-win32 mailing list
python-win32@python.org
http://mail.python.or
Thanks for reply Tim.
I had decided not to use the command ID technique until I got things
working, so TPM_RETURNCMD was commented out when I defines flags. From
my understanding of MSDN and pywin32, this should make commands
immediately execute and cause TrackPopupMenu to return an HRESULT?
Chris Ness wrote:
> disclaimer: I have only the faintest idea what I'm doing!
>
> I'm trying to get a windows explorer context menu in my app. I can get
> the menu to show, but it does not execute any commands (e.g. 'copy')
Right, because you haven't told it to. You implemented the stuff form
th
disclaimer: I have only the faintest idea what I'm doing!
I'm trying to get a windows explorer context menu in my app. I can get
the menu to show, but it does not execute any commands (e.g. 'copy')
my code is based on
http://bcbjournal.org/articles/vol4/0006/Using_the_shell_context_menu.htm a