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 =
win32api.OpenProcess(win32con.PRO
Hi, Eric!
Below, derived from your code, an exemple for to found modules in memory
(useful for "scan memory" with clamwin, or other usages)
@-salutations
--
Michel Claveau
import win32api,win32con,win32process,win32security
# Request privileges to enable "debug process", so we can later us
> --
>> Tim Roberts, t...@probo.com
>> Providenza & Boekelheide, Inc.
>>
>> ___
>> python-win32 mailing list
>> python-win32@python.org
>> http://mail.python.org/mailman/listinfo/python-win32
>>
>>
>
&
reehdus wrote:
>
> I see...I tried looking for documentation onw win32con to see what I
> needed but I couldn't muster up anything. All i got were
> win32con.PROCESS_TERMINATE and process query information so I assumed one of
> this was what I needed. Again...thanks so much for enlightening
Excellent...it works! Thanks...I put in the first sleep so I could test
the program with various other applications, so it'd give me enough time to
open up internet explorer or something...the second sleep was a
typo...leftover from a bit of earlier code i did.
I see...I tried looking
reehdus wrote:
> I tried that but I get stuck at EnumProcessModules. It tells me my access is
> denied. I'm not sure if I'm doing it right. My code is below:
>
> import win32gui
> import win32api
> import win32con
> from time import sleep
> import win32process
>
> sleep(2)
> name = win32gui.GetFore
I tried that but I get stuck at EnumProcessModules. It tells me my access is
denied. I'm not sure if I'm doing it right. My code is below:
import win32gui
import win32api
import win32con
from time import sleep
import win32process
sleep(2)
name = win32gui.GetForegroundWindow()
t,p = win32process.