[PythonCE] pythoncom for pythonCE
Oliver Brand
brand@learninglab.de
Mon, 2 Sep 2002 17:33:48 +0200
Hi,
has anybody seen a pythoncom implementation for PythonCE (Arm) ?
I want to get the following code to work, but it fails saying that
the module pythoncom is not available.
I'm a python newbie, so maybe my mistake could be somewhere else ...
import win32com.client
import win32gui
import pythoncom
iid = pythoncom.MakeIID("{9ba05972-f6a8-11cf-a442-00a0c90a8f39}")
shellWnd = win32com.client.Dispatch(iid)
count = shellWnd.Count
topWin = win32gui.GetForegroundWindow()
for index in range(count):
browser = shellWnd.item(index)
if browser.HWND == topWin :
url = browser.LocationURL
print "Result: " + url
Thanks,
Oliver