Board index » delphi » Sendkey with Latin1 Characters

Sendkey with Latin1 Characters

Does anyone have a solution for sending keys
that are Latin1 characters such as accented letters.

The solution developed by Richter and published
in numerous books does not work.  Similarly,
the keyboard event procedure works only
for keys that are on your keyboard and
does not work with the VK_NUMPADx,
otherwise a solution would be to
send Alt 0216 for ?  and so on.

Thanks for your help

Jean Ichbiah
Textware Solutions
ichb...@twsolutions.com
http://www.twsolutions.com

 

Re:Sendkey with Latin1 Characters


Jean,
  You can do something like this:

   sendmessage(memo1.handle,wm_char,Ord(chr(224)),0)

This inserts the accented a (ASCII value 224) into the memo control.

Dave
http://www.erols.com/dparsons

Quote
Jean D. Ichbiah wrote in message <3518356e.47198...@news.tiac.net>...
>Does anyone have a solution for sending keys
>that are Latin1 characters such as accented letters.

>The solution developed by Richter and published
>in numerous books does not work.  Similarly,
>the keyboard event procedure works only
>for keys that are on your keyboard and
>does not work with the VK_NUMPADx,
>otherwise a solution would be to
>send Alt 0216 for ?  and so on.

>Thanks for your help

>Jean Ichbiah
>Textware Solutions
>ichb...@twsolutions.com
>http://www.twsolutions.com

Re:Sendkey with Latin1 Characters


On Tue, 24 Mar 1998 03:01:40 -0500, "Dave Parsons"

Quote
<dpars...@erols.com> wrote:
>   You can do something like this:

>    sendmessage(memo1.handle,wm_char,Ord(chr(224)),0)

> This inserts the accented a (ASCII value 224) into the memo control.

Dave,

This works within your application but is not
easy to transpose to sending to other applications.
For example, doing a virtual keyboard and sending
keys to MS Word or WordPad or Delphi...

Jean Ichbiah
Textware Solutions
ichb...@twsolutions.com
http://www.twsolutions.com

Other Threads