> 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
>> 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 *
Wait, spoke a bit too soon. I noticed that you (Tim) apparently missed
a zero in your first method of building the bits (8 with 6 zeros
instead of 7), which generates only a 28bit number, not 32bits. (which
i blindly copy pasted at first...). when i try to make an actual 32bit
value, and then send
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
On Thu, 31 Mar 2005 21:40:02 -0500, Daniel F <[EMAIL PROTECTED]> wrote:
Well, i do need a general solution, I was just using notepad as a test
case... So it's definitely good for me to know about this - thanks!
But i wonder, isnt there some kind of an "upstream" event, that could
be generated and t
Roel Schroeven <[EMAIL PROTECTED]> writes:
> Tim Roberts wrote:
>
>> On Wed, 30 Mar 2005 20:46:43 -0500, Daniel F <[EMAIL PROTECTED]> wrote:
>>
>>> Well... i figured it out - turns out sending the keystrokes to the top
>>> window of notepad didnt work, but sending them to the Edit child
>>> windo
Tim Roberts wrote:
> On Wed, 30 Mar 2005 20:46:43 -0500, Daniel F <[EMAIL PROTECTED]> wrote:
>
>> Well... i figured it out - turns out sending the keystrokes to the top
>> window of notepad didnt work, but sending them to the Edit child
>> window of notepad did the trick.
>>
>> But this brings me
> 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
On Wed, 30 Mar 2005 20:46:43 -0500, Daniel F <[EMAIL PROTECTED]> wrote:
Well... i figured it out - turns out sending the keystrokes to the top
window of notepad didnt work, but sending them to the Edit child
window of notepad did the trick.
But this brings me to another question, although of a less
Daniel F wrote:
> Well... i figured it out - turns out sending the keystrokes to the top
> window of notepad didnt work, but sending them to the Edit child
> window of notepad did the trick.
>
> But this brings me to another question, although of a less urgent
> manner. i had to send WM_CHAR mess
Well... i figured it out - turns out sending the keystrokes to the top
window of notepad didnt work, but sending them to the Edit child
window of notepad did the trick.
But this brings me to another question, although of a less urgent
manner. i had to send WM_CHAR messages, rather than WM_KEYDOWN/
11 matches
Mail list logo