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

2005-03-30 Thread Daniel F
Hi, I am trying to use win32gui.SendMessage API (or PostMessage), and cannot figure out why it is not working. I would appreciate any help! Simple test script I am using is included below. I am using pywin32-203 and python 2.4, on winxp pro sp2. I am a total newbie to python, so if this is a

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

2005-03-30 Thread Daniel F
/KEYUP in order to get it to work. I have nothing against WM_CHAR, as long as everything works, but i am just curious why i was not able to achieve the same effect with the WM_KEYDOWN/KEYUP pair? any takers? Thanks, Daniel On Wed, 30 Mar 2005 10:28:36 -0500, Daniel F [EMAIL PROTECTED] wrote: Hi

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

2005-04-01 Thread Daniel F
Thank you all for your suggestions! Using PostMessage with WM_KEYDOWN/KEYUP, and creating the lparam bitfield like that, does the trick quite well. Really appreciate your help! :) On Apr 1, 2005 12:59 PM, Tim Roberts [EMAIL PROTECTED] wrote: On Thu, 31 Mar 2005 21:40:02 -0500, Daniel F [EMAIL

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

2005-04-02 Thread Daniel F
as well with a 31-bit value... so i guess i have no problem with this, just asking out of curiosity. Thanks, Daniel On Apr 1, 2005 4:19 PM, Daniel F [EMAIL PROTECTED] wrote: Thank you all for your suggestions! Using PostMessage with WM_KEYDOWN/KEYUP, and creating the lparam bitfield like

Re: [python-win32] character to integer

2005-04-04 Thread Daniel F
function ord() would get the int value of the char. and in case you want to convert back after playing with the number, function chr() does the trick ord('a') 97 chr(97) 'a' chr(ord('a') + 3) 'd' On Apr 4, 2005 9:16 AM, Chi Tai [EMAIL PROTECTED] wrote: Hello, how can i make an integer

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] 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 to

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 and

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] Re: Help on using win32api.SendMessage to send keystrokes

2005-04-07 Thread Daniel F
Unicode Implemented as ANSI and Unicode versions. Which means: Call MapVirtualKeyA for ansi strings, MapVirutalKeyW for unicode strings. aha! that works. :) never would have guessed just by looking at that unicode line what it actually means... Daniel, off to learn how to inject

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

2005-04-07 Thread Daniel F
I have this: -rw--- 1 niki users 1459352 Apr 1 2004 4-04-01/adder-0.3.3-src.zip -rw--- 1 niki users 137800 Apr 1 2004 4-04-01/adder-0.3.3-win32.zip -rw--- 1 niki users 69801 Apr 1 2004 4-04-01/adder-manual.zip Do you want any of them? By e-mail? yes, please! with

Re: [python-win32] Python und Hardwaremanagement

2005-04-14 Thread Daniel F
Many thanks so far for your quick response. Basically what I mean with manage your hardware is writing a program that can switch on/off the monitor and keyboard as well as setting/change the resolution and frequency. Its just for training. to play with the monitor settings, check out the