Re: [python-win32] trying to grab exe of foreground window

2009-07-25 Thread reehdus
Awesome, thanks Eric, Roger and Tim for your help. Everything's been working fine so far. Here's what I've been using. It works on Vista too but I have admin access to that though. t,p = win32process.GetWindowThreadProcessId(hwnd)#find out PID to window handle =

[python-win32] Problem with Python win32com while loading facebook homepage

2009-07-25 Thread Adrien LEMAIRE
Hi dear members of the python-win32 python mailing list, I'm trying to connect to my facebook account.. I'd like to automate some tasks like closing applications requests, and why not automate task for application games of facebook, if I arrive to do this. But I can't arrive to connect to

Re: [python-win32] Problem with Python win32com while loading facebookhomepage

2009-07-25 Thread Michel Claveau
Hi! The code below run OK for me. (Do not remove the sleep) @+ -- Michel Claveau # -*- coding: utf-8 -*- import win32com.client import time ie = win32com.client.Dispatch('InternetExplorer.Application') time.sleep(4) ie.Visible=1 ie.Navigate('http://www.facebook.com') time.sleep(4)