TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mario Semo
from: David Muir
date: 1996-03-09 23:01:02
subject: Re: next .

-=> Quoting Mario Semo to David Muir <=-

 DM> I suppose I should have specified that I want to trap these 
 DM> keystrokes in a windowed OS/2 session and the SetKbdStatus 
 DM> does not work in that environment. Any hints?

 MS> ??? What is NOT working ???? 

    According to PRCP.INF KbdSetStatus does not work in Vio-windowed 
apllictions. In my past attempts this proved to be the case.

 MS> I've again compiled a small test sample (pasted from MicroSoft QH for
 MS> OS/2 1.3) and compiled with VACPP. started in a Windowed session  

    However... After porting the code you've posted here, I did manage to get 
it working, but shortly thereafter, my system became very unstable (eventually 
locking up while I attempted to reply to this the first time around). I'm 
assuming this is somehow due to my not restoring the keyboard on exit 
(although it shouldn't have affected my system this way).
    I'll assume for now that this  was a fluke (until I run a few more tests).
So thanks for both your patience and your code. I suspect the KbdOpen along 
with the KbdGetFocus are what made the substancial difference from my previous 
code.
    Thanks again...

Dave...

... THD ProScan support on the web, http://www.naples.net/~nfn03274
~~~ TGWave v1.12+
--- GEcho 1.11+
* Origin: fks Online! * Ontario, Canada * (905)820-7273 * (1:259/423)
SEEN-BY: 50/99 78/0 270/101 620/243 711/401 409 410 413 430 808 809 934 955
SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809
@PATH: 259/423 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.