www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/30/07:23:19

Message-ID: <3598CA0F.ACF8CCA7@post.comstar.ru>
Date: Tue, 30 Jun 1998 15:20:47 +0400
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: Comstar Ltd.
MIME-Version: 1.0
To: New6ie <new6ie AT aol DOT com>
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>


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)


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019