win32com Dispatch() and SetPriorityClass()

C

Chris Curvey

if I'm using Dispatch() to manage a COM object (IE), is there a way to
get ahold of the process handle so that I can bump it's priority?
 
R

Roger Upole

The ie object exposes its window handle as attribute HWND, and you should
be able to use win32process.GetWindowThreadProcessId to get the thread id
and process id that created the window.

hth

Roger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,239
Messages
2,571,200
Members
47,836
Latest member
Stuart66

Latest Threads

Top