Author Topic: [RESOLVED] Hotkeys  (Read 5597 times)

0 Members and 1 Guest are viewing this topic.

Offline wires

  • Pwnage
  • x86
  • Hero Member
  • *****
  • Posts: 1103
  • cocaine is fun!
    • View Profile
    • Weapon Of Mass Destruction
[RESOLVED] Hotkeys
« 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.
« Last Edit: June 12, 2005, 03:47:20 am by WiReS »

Offline wires

  • Pwnage
  • x86
  • Hero Member
  • *****
  • Posts: 1103
  • cocaine is fun!
    • View Profile
    • Weapon Of Mass Destruction
Re: Hotkeys
« Reply #1 on: June 12, 2005, 03:47:02 am »

Offline Blaze

  • x86
  • Hero Member
  • *****
  • Posts: 7136
  • Canadian
    • View Profile
    • Maide
Re: [RESOLVED] Hotkeys
« Reply #2 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..
And like a fool I believed myself, and thought I was somebody else...

Offline wires

  • Pwnage
  • x86
  • Hero Member
  • *****
  • Posts: 1103
  • cocaine is fun!
    • View Profile
    • Weapon Of Mass Destruction
Re: [RESOLVED] Hotkeys
« Reply #3 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.