🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: is any way to generate a KeyPress?

#15902
From: Hans Galema
Date: Fri, 06 Jun 2003 18:18
10 lines
1395 bytes
Jermey wrote:

>     I am working on a gui looks a Hex editor. There are some buttons 
> (0-9 and A-F) on it. I want that if the user press a button on my gui, 
> my code will generate a KeyPress. Say if the user pressed the "A" 
> button, I will generate the "A" key press. is any way to do that?

Have a look at keybd_event().

Hans.
Technical Details
Message-ID: <3ee0dba4$1@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-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3EE0C4FB.6030202@hotmail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,99f56699d01d64be
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-06 11:28:40 PST
Date: Fri, 06 Jun 2003 20:18:19 +0200
From: Hans Galema <j.m.galema.dontusethis@maartens.nl>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: is any way to generate a KeyPress?
References: <3EE0C4FB.6030202@hotmail.com>
In-Reply-To: <3EE0C4FB.6030202@hotmail.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.108.11
Message-ID: <3ee0dba4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054923684 129.125.108.11 (6 Jun 2003 11:21:24 -0700)
Lines: 11
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail