[python-win32] Re: Help on using win32api.SendMessage to send keystrokes

2005-04-06 Thread Thomas Heller
>> ctypes is a wonderful package -- invaluable for someone doing Win32 API >> work. Basically, it allows you to call any API in any DLL, as long as >> you can describe the parameters. > > except mapvirtualkey. not that it matters now, anyway, but, behold this: > > # ##code: > from ctypes import *

Re: [python-win32] Intro and Windows Questions

2005-04-06 Thread Daniel F
Hi Christophe, I am a newbie to python myself... but i have settled for now on just using the scite editor (http://www.scintilla.org/SciTE.html) to code python. like you, i was not impressed with eclipse+pydev, or pythonwin (and havent even tried all those other ones you mentioned). scite doesnt

Re: [python-win32] HookMessage failure?

2005-04-06 Thread Daniel F
Hey Mark, the correct mesage to hook is "win32con.WM_LBUTTONDOWN" try it with this one, and see if that works. -d On 7 Apr 2005 02:15:41 -, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hey, > > I'm currently trying to detect all clicks to a particular windows > application, using win32gui

[python-win32] HookMessage failure?

2005-04-06 Thread b6y9eq902
Hey, I'm currently trying to detect all clicks to a particular windows application, using win32gui and win32ui. Right now I'm using EnumWindows() to find the hwnd I want via window title, and then CreateWindowFromHandle(hwnd) to get a PyCWnd object that represents the window. I then attempt t

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-06 Thread Daniel F
Well... i tried it... and sendinput officially does not work on ff7 (but does on notepad). so either ff7 is doing something really funky (not likely, since it does load dinput.dll), or sendinput is not actually upstream of directinput (more likely). but the only game i have that loads dinput.dll is

Re: [python-win32] How Can I exec() a statement?

2005-04-06 Thread Bob Gailer
At 10:57 AM 4/6/2005, * William wrote: [snip] I want to execute a statement indirectly in Python. Take the simple case below.  The chevrons ">> " indicate the result of the statement b = 2 a = b + 6 eval('a = b + 6', globals(), locals() ) There are often better solutions than exec. Tell us a

Re: [python-win32] How Can I exec() a statement?

2005-04-06 Thread Gabriel Genellina
At Wednesday 6/4/2005 14:57, * William wrote: HOW -- or, is it possible -- to execute the an assignment statement from a string? Try 'exec' >>> a=1 >>> b=2 >>> exec 'a=b+3' >>> a 5 Gabriel Genellina Softlab SRL ___ Python-win32 mailing list Python-win3

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-06 Thread Daniel F
> There is module for injection of *python* code in win32 apps. > > http://security.opennet.ru/base/patches/1080837482_191.txt.html > this looks interesting, i wanted to give it a look, but it seems that rootkit.com (where the actual package is hosted) is not resolvable anymore. you dont happen

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-06 Thread Daniel F
> I don't know the answer to this. Games tend to be straight-to-the-metal > applications: they don't truck with a lot of filtering and intermediate > DLLs. You might be able to use the debug APIs to watch for the loading > of the DirectInput DLL and insert some manual hooks, but that's a pretty >

Re: [python-win32] How Can I exec() a statement?

2005-04-06 Thread Steve Holden
* William wrote: Hello all. Thanks for the tips and solutions posted to the list so far. This is a general python question, not windows specific. It is my turn to ask. (Perhaps the notion below will suggest some development to one of you. Who knows?) I want to execute a statement indirectl

[python-win32] Intro and Windows Questions

2005-04-06 Thread Christophe Leske
Hello there, my name is Christophe Leske and i am a developer based in Düsseldorf, germany. I have a multimedia programming background, but am slowly crawling up to RAD development using Python and am therefore looking for a windows IDE and GUI Designer. Now: Ideally, I'd like to have an IDE wit

[python-win32] How Can I exec() a statement?

2005-04-06 Thread * William
Hello all.   Thanks for the tips and solutions posted to the list so far.  This is a general python question, not windows specific.  It is my turn to ask. (Perhaps the notion below will suggest some development to one of you. Who knows?)   I want to execute a statement indirectly in Python.

RE: [python-win32] win32dph.EnumObjectItems problem

2005-04-06 Thread Mark Hammond
> Hi All, > > I have a problem using win32pdh with Python22. > The call of win32pdh.EnumObjectItems changes the > decimal point from . to , on my system. > I think it could be a problem with the language setting > form german. > So I run in trouble with unpickle of float objects. > Is there a soulu

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-06 Thread Niki Spahiev
Tim Roberts wrote: I don't know the answer to this. Games tend to be straight-to-the-metal applications: they don't truck with a lot of filtering and intermediate DLLs. You might be able to use the debug APIs to watch for the loading of the DirectInput DLL and insert some manual hooks, but tha

[python-win32] win32dph.EnumObjectItems problem

2005-04-06 Thread Frank Guenther
""" Hi All, I have a problem using win32pdh with Python22. The call of win32pdh.EnumObjectItems changes the decimal point from . to , on my system. I think it could be a problem with the language setting form german. So I run in trouble with unpickle of float objects. Is there a soulution or workar