Clan x86

Technical (Development, Security, etc.) => General Programming => Topic started by: wires on June 11, 2005, 10:04:47 pm

Title: [RESOLVED] Hotkeys
Post by: wires on June 11, 2005, 10:04:47 pm
Is there a better way to receive hotkeys in Broodwar such as F11 and stuff without using a timer?  Right now I'm using a timer which totally sucks.
Title: Re: Hotkeys
Post by: wires on June 12, 2005, 03:47:02 am
After a little more indepth search I think I've found what I'm looking for.

http://www.codeguru.com/vb/gen/vb_system/keyboard/article.php/c4829/
http://vbnet.mvps.org/index.html?code/hooks/setwindowshookex.htm
Title: Re: [RESOLVED] Hotkeys
Post by: Blaze on June 13, 2005, 12:25:56 pm
Is there a better way to receive hotkeys in Broodwar such as F11 and stuff without using a timer?  Right now I'm using a timer which totally sucks.

Your timer can hook keypreses? Cool.  If you don't want to use a timer, you *COULD* use a do, Loop with a doevents in it..
Title: Re: [RESOLVED] Hotkeys
Post by: wires on June 13, 2005, 01:15:58 pm
Yeah, warrior told me about the loop idea.  I decided not to do it.  I might however do it just to use on my WinME computer and use they Keyboard hook at my dad's.  *shrug*

My timer used GetAsyncKeyState() to get they hotkey from Broodwar.