[python-win32] How to wait for context menu (i.e. right-click menu) pop-up?

2011-10-26 Thread reckoner
Hi, A script needs something on the context menu ( obtained either by right-click or by appskey ). The trouble is that sometimes the pop-up context menu takes an unpredictable time to load, so I need a way of detecting whether or not the context menu is ready for subsequent actions before the

Re: [python-win32] retrieve microsoft office product key

2011-10-26 Thread Tim Roberts
pacopyc pacopyc wrote: > Hi, I'd like monitor microsoft office licences on my LAN (about 50 > PC). Can I retrieve product key with python script? The question is complicated, because Microsoft's licensing model is complicated. Do you have a volume license key that you're trying to monitor, or are

[python-win32] Restart/re-run a thread

2011-10-26 Thread Jacob Kruger
Trying out/testing the use of multiple threading.Thread objects to play sounds using winsound.PlaySound function, and in order to be able to play multiple sounds at the same time/near enough to each other, I am trying out implementing a separate thread to call the function that handles this, but

[python-win32] win32gui.GetCursorInfo: TypeError: function takes no arguments

2011-10-26 Thread Anton Kurbatov
May you help me, pls... I am using win7 ultimate. Installed version of python 2.5.1.1. (ActivePython with pywin32) I get the following msg: >>> import win32gui >>> print win32gui.GetCursorInfo() Traceback (most recent call last): File "", line 1, in TypeError: function takes no arguments >>>