Would you be interested in now sharing the complete code by posting it ?
S


On Thu, Mar 8, 2012 at 8:05 AM, Man-wai Chang <chan...@gmail.com> wrote:
> After a lot of doing Google serach, problem solved by a message from a
> Delphi forum:
>
> http://delphi.xcjc.net/viewthread.php?tid=479
>
> I need to add an WM_CHAR message between WM_KEYDOWN & WM_KEYUP.
>
> m.yy=VkKeyScan(asc("A"))
> SendMessage(ln_current_window,WM_KEYDOWN, m.yy, 0)
> SendMessage(ln_current_window,WM_CHAR, m.yy, 0)
> SendMessage(ln_current_window,WM_KEYUP, m.yy, 0)
>
>
> On Wed, Mar 7, 2012 at 9:09 PM, Man-wai Chang <chan...@gmail.com> wrote:
>> I would like to use SendMessage() to send keystrokes to another window
>>
>> #define WM_KEYDOWN        0x0100
>> #define WM_KEYUP              0x0101
>>
>> DECLARE INTEGER SendMessage IN user32;
>>    INTEGER hWnd,;
>>    INTEGER Msg,;
>>    INTEGER wParam,;
>>    INTEGER lParam
>>
>> DECLARE SHORT VkKeyScan IN user32;
>>    INTEGER ch
>>
>> m.xx=VkKeyScan(asc("A"))
>> SendMessage( ln_current_window,  WM_KEYDOWN,  m.xx, 0)
>> SendMessage( ln_current_window,  WM_KEYUP,  m.xx, 0)
>>
>> It didn't work. Tried it on Notepad as well as Command Prompt.
>>
>> What's wrong with my codes?
>>
>> --
>>  .~. Might, Courage, Vision. SINCERITY!
>> / v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
>> /( _ )\ http://sites.google.com/site/changmw
>> ^ ^ May the Force and farces be with you!
>
>
>
> --
>  .~. Might, Courage, Vision. SINCERITY!
> / v \ 64-bit Ubuntu 9.10 (Linux kernel 2.6.39.3)
> /( _ )\ http://sites.google.com/site/changmw
> ^ ^ May the Force and farces be with you!
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAG1nNy_0DdCCYvGuSgWBe13HA+qk_uk8CSZ5v7VuydLpTa8Y=a...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to