Solved

SendKeys to another App

Posted on 1999-01-28
2
147 Views
Last Modified: 2010-05-18
How can I send keystrokes to another app, I need to send the tab character to another app that my file works with,

How do i use the
SendMessage routine to send 1 tab to another app,
I have the Window handle, just don't know how to send the command.
0
Comment
Question by:JasonC
2 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 100 total points
ID: 1363729
SendMessage(Handle, WM_CHAR, TheChar, 0);

Cheers,

Raymond.
0
 
LVL 44

Expert Comment

by:bruintje
ID: 1363730
If you got Delphi 4 look into the directory
delphi4/info/extras/sendkeys

else look here
http://www.ellipse-data.com/delphifaq/delphi_faq_1.html#2.5.24
or for an example
http://www.inprise.com/devsupport/delphi/qanda/FAQ1500D.html
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question