Message-ID: <3598CA0F.ACF8CCA7@post.comstar.ru> Date: Tue, 30 Jun 1998 15:20:47 +0400 From: Dim Zegebart Reply-To: zager AT post DOT comstar DOT ru Organization: Comstar Ltd. MIME-Version: 1.0 To: New6ie CC: djgpp AT delorie DOT com Subject: Re: Send keycodes TO the computer? References: <1998063009571501 DOT FAA28524 AT ladder03 DOT news DOT aol DOT com> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Precedence: bulk New6ie wrote: > Hiya, > > I'm working on a dos program, using allegro's keyboard routines. I've > studied the example given by Shawn Hargreaves on getting input FROM the > keyboard, but I'd like to send a keycode from my program...Here's why: I'd > like my dos program to be able to minimize itself to the win95 taskbar. If you > type Alt+Esc, it minimizes itself very nicely. So how can I get my program to > send the same signals as manually pressing Alt+Esc? I'm not sure ... but try simulate_keypress() from Allegro API Overwise, you should try lib (something about doswin, sorry I don't remember the axact name) which floating in our NG to be able to put msg in your dos-bix window queue. -- ____ ____ | \ / Dim Zegebart ____/____ Moscow Russia WWW - http://www.geocities.com/siliconvalley/pines/7817 DZcomm - comm library for Allegro Palantir - multitasking kernel for Allegro (based on PDMLWP)