🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

ALT+TAB Detection

#17390
From: Stephane Baillargeon
Date: Wed, 26 Mar 2003 15:00
13 lines
1475 bytes
Is there a way to detect the ALT+TAB app switcher and control it?

Explanation:

We are developping a large scale video game. Durring gameplay, we want the
user to be able to hit the ALT+TAB keys in order to change the current task.
Our problem is that the game's threads are still running in the background
and it consumes a massive ammount of memory rendering the PC pretty slow. Is
there a way to detect this combination of keys in a WinAPI point of view and
stop the task switch momentarly to do some proccessing like stopping the
game's threads?

Thank you.
Technical Details
Message-ID: <3e81c096@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ed76e0ba65fedfe4,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-26 20:14:58 PST
From: "Stephane Baillargeon" <sbaillargeon@microids.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: ALT+TAB Detection
Date: Wed, 26 Mar 2003 10:00:32 -0500
Lines: 15
Organization: Microids Canada Inc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 216.208.130.66
Message-ID: <3e81c096@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048690838 216.208.130.66 (26 Mar 2003 07:00:38 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail