> > Is there any way to simply detect *all* mouse clicks in
> > Windows? I'd prefer to detect when it's clicked in the
> > application, but if necessary I'm fine just trying to detect
> > all of them and seeing if my desired application is the
> > foreground window.
> >
> > Is this possible? How
> The code below seems to work.
>
> def GetClipboardText():
> text = ""
> if OpenClipboard(c_int(0)):
> hClipMem = GetClipboardData(c_int(CF_TEXT))
> GlobalLock.restype = c_char_p
> text = GlobalLock(c_int(hClipMem))
> GlobalUnlock(c_int(hClipMem
> I am new to python WIN-32 and am trying to automate a
> word document creation. I am trying to paste clipboard
> that I capture from an application to MS Word and I
> was wondering if this can be done through python
> WIN-32. I am a doing a sequence of tests which saves
> simulation results to th
> 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 th
> Daniel F wrote:
>
> >win32api.PostMessage(HWND, win32con.WM_KEYDOWN, win32con.VK_CONTROL,
> >lParamBits)
> >win32api.PostMessage(HWND, win32con.WM_KEYDOWN, 0x53, lParamBits)
> >win32api.PostMessage(HWND, win32con.WM_KEYUP, 0x53, lParamBits)
> >win32api
> I am trying to get the contents of a control in a window, say a TextArea
> control or a List or a button etc.
> I can programmatically get the window its in and then the controls handle by
> enumming the child windows of that window.
> I cannot get the contents of that control.
> I'm a tester and
> I've read the thread on this list titled "Help on using
> win32api.SendMessage to send keystrokes," some of the PyWin32 documentation,
> and some of the MSDN docs on SendMessage, but am still unclear about how to
> construct a message to send simple accelerator key combinations to a window,
> su
> 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!
> 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
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
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
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
> 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
> 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
>
> >and
> >how i would hook those keypresses/mouse moves, and how i would inject
> >a keypress/mousemove for an application that is using directinput? Is
> >that even possible?
>
> No. In order to do what you ask, you would need to write and install a
> set of kernel filter drivers to inject the e
Thank you all for your suggestions. Seems like i had this all figured out...
But now I am running into another problem. I was originally planning
to use this on a game (final fantasy 7, in fact). I capture keystrokes
in the system, then send them over the net and generate them on the
remote comp,
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 ma
just 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 lpa
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,
> It depends entirely on what the application expects. When the keyboard
> driver sends keystrokes, the generic keyboard driver translates the key
> codes to characters, if possible. It will send WM_KEYDOWN, then WM_CHAR
> (if an ASCII translation exists), then WM_KEYUP. Applications can
> choos
/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]>
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 rea
22 matches
Mail list logo