🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Register windows hotkey problem

#12172
From: Martin C
Date: Thu, 25 Dec 2003 01:08
19 lines
1684 bytes
Hi,

I am trying to register windows hotkey using the following code

RegisterHotKey(Handle, 1, MOD_ALT, VK_F1);

in order to make my application run perform some actions when the user press
ALT+F1.

Now as long as the program main window is visible everything is perfect, but
once I minimize my program to the system tray, the program sometime don't
respond when I press ALT+F1, in other words I can press ALT+F1 for 2 -3
times before my program start responding. once I restore my program from the
system tray everything return normal again !!

can someone tell me please what exactly I am doing wrong here, and why this
is happening.

Thank you in advance...
Technical Details
Message-ID: <3fea38e8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!news-out1.newsfeeds.com!propagator2-maxim!news-in-maxim.spamkiller.net!teleglobe.net!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,fd964279e0f05daa,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-24 17:28:31 PST
From: "Martin C" <martinc@aol.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Register windows hotkey problem
Date: Thu, 25 Dec 2003 03:08:29 +0200
Lines: 21
Organization: V Safe
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 81.10.4.238
Message-ID: <3fea38e8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1072314600 81.10.4.238 (24 Dec 2003 17:10:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!news-out1.newsfeeds.com!propagator2-maxim!news-in-maxim.spamkiller.net!teleglobe.net!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail