🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14860

Simulating Keystrokes

#14860
From: Dave
Date: Tue, 29 Jul 2003 04:05
17 lines
1433 bytes
Hello

I am wondering if someone could help me with simulating a keyboard stroke.
I tried using the function keybd_event....it worked for programs like
notepad but not for the program I wanted.

So I decided to try to use SendInput.

Could someone perhaps send me some code that uses SendInput  to simulate
someone pressing the "e" key and then releasing the "e" key with that
SendInput function?

The Microsoft help files on this function are rather lacking.

Thanks in advance.

---Dave
Technical Details
Message-ID: <3f25f340@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,cc35e8512be8f804,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-28 21:09:31 PST
From: "Dave" <nemesis@maine.rr.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Simulating Keystrokes
Date: Tue, 29 Jul 2003 00:05:12 -0400
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 24.198.130.5
Message-ID: <3f25f340@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059451712 24.198.130.5 (28 Jul 2003 21:08:32 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail