🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Simple little question...

#15978
From: Remy Lebeau (TeamB)
Date: Thu, 05 Jun 2003 23:47
26 lines
2080 bytes
"Chris" <Chris8852@adelphia.net> wrote in message
news:3edfc8c5$1@newsgroups.borland.com...

> If I try and record the state of the keys before I
> start this, many times it puts the keys down when
> they are physically up on their keyboard, causing
> problems.

Have you looked at Get/SetKeyboardState() yet?  You can get the keyboard's
current state as a whole, then manipulate it anyway you want, and then
restore the entire keyboard state back to what it previously was.

> I basically need a way to trick a program into thinking
> a key has been pressed without actually effecting the
> system's keyboard even in a virtual manner. Like isuing
> a keyup or keydown message to it... I've tried quite a
> few hours of many days to get this working...

I still don't understand why you don't just issue the messages themselves.
They are just notification messages, they don't alter the keyboard's actual
state.  You said you tried them before.  What was your actual code that
didn't work?


Gambit
Technical Details
Message-ID: <3edfd5dd$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ede7291$1@newsgroups.borland.com> <3ede97fb$1@newsgroups.borland.com> <3edf7813$1@newsgroups.borland.com> <3edf7b6c@newsgroups.borland.com> <3edfc8c5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,a1c6ebdccf17b6f9
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-05 16:48:34 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ede7291$1@newsgroups.borland.com> <3ede97fb$1@newsgroups.borland.com> <3edf7813$1@newsgroups.borland.com> <3edf7b6c@newsgroups.borland.com> <3edfc8c5$1@newsgroups.borland.com>
Subject: Re: Simple little question...
Date: Thu, 5 Jun 2003 16:47:39 -0700
Lines: 28
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: 207.175.226.26
Message-ID: <3edfd5dd$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054856669 207.175.226.26 (5 Jun 2003 16:44:29 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail