Solved

poping strings without pressing keys from the keyboard

Posted on 2001-08-25
3
152 Views
Last Modified: 2010-04-06
how can i popup letters or like
pressing the enter key without pressing
keys in the keyboard.

example: If im in the notepad(active window)
         after a few seconds a word will
         be written on it,(like it pops right away
         there!)


What i mean i do not know the name of
the active window or application, and
i want to send some message on it
how can i do this? and is it possible
to display all application names found
who are running in my computer and specially
the active one.
0
Comment
Question by:ryan_sabarre
3 Comments
 
LVL 1

Expert Comment

by:sundayboys
ID: 6425927
already comment
0
 
LVL 20

Accepted Solution

by:
Madshi earned 100 total points
ID: 6426090
Seems like a double post question?

Anyway, here is my comment:

I would suggest using keybd_event. It just simulates key pressed and doesn't care which application is currently in the foreground.

E.g. this one simulates pressing and releasing the control key:

  keybd_event(VK_CONTROL, 0, 0,               0);
  keybd_event(VK_CONTROL, 0, KEYEVENTF_KEYUP, 0);

Regards, Madshi.
0
 
LVL 3

Expert Comment

by:rondi
ID: 6428056
yeah keybd_event worked for me;
I used it to take screen snapshots but it'll do for anything
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
FMX enumerated colours 2 115
Intraweb download file link ? 1 153
Correct Component for Shopping Cart. 2 112
How to save the image in the .cds File ClientDataSet? 1 22
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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

789 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