Recent

Author Topic: How send a keystroke?  (Read 5993 times)

clauslack

  • Sr. Member
  • ****
  • Posts: 275
How send a keystroke?
« on: February 22, 2010, 04:08:32 pm »
Hi

How can I send the key VK_END to an Edit.

Some like that.

Code: [Select]
Edit1.Text:='44';
Edit1.SetFocus;  //this can put cursor to the left side of Edit
// How can put cursor to the right side?

Regards

javivf

  • New Member
  • *
  • Posts: 14
    • http://javivf.alasombra.net/blog
Re: How send a keystroke?
« Reply #1 on: February 22, 2010, 04:40:21 pm »
You can use LazMouseAndKeyInput package.

clauslack

  • Sr. Member
  • ****
  • Posts: 275
Re: How send a keystroke?
« Reply #2 on: February 22, 2010, 07:47:02 pm »
Thanks, this works fine.

 

TinyPortal © 2005-2018