• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

What other keyboard keys can be detected by events?

Status
Not open for further replies.

Deleted member 177737

D

Deleted member 177737

Hey,

Just wondering if its possible to detect keys other than the arrow keys being pressed/released in GUI.
 
The only keys I have found that war3 can detect are:

- bj_KEYEVENTTYPE_RELEASE
- bj_KEYEVENTTYPE_DEPRESS
- bj_KEYEVENTKEY_UP
- bj_KEYEVENTKEY_DOWN
- bj_KEYEVENTKEY_LEFT
- bj_KEYEVENTKEY_RIGHT

I don't think it's possible anyway. You can manipulate hotkeys only with:
JASS:
native ForceUIKey                   takes string key returns nothing
What forces player to press given hotkey.
JASS:
native GetLocalizedHotkey takes string source returns integer
What enables you to get hotkey from given source.
 
Hotkeys of command field orders, escape key with skip cinematic event, maybe space through camera quick position points, 0-9 select groups if defined, 1,2,4,5,7,8 on num pad trigger active items in inventory. Paste/Delete rotate camera, enter when sending chat messages. F1-F5 select own heroes.
 
Darn, I wanted to use the letter keys (A-Z). Thx anyways tho.
 
You could detect those with abilities, if you're willing to make some sacrifices.

If you can ensure the player has a certain unit selected at all times, you can give that unit hidden abilities that respond to the "A" to "Z" hotkeys.

It doesn't work flawless though.
 
You could detect those with abilities, if you're willing to make some sacrifices.

If you can ensure the player has a certain unit selected at all times, you can give that unit hidden abilities that respond to the "A" to "Z" hotkeys.

It doesn't work flawless though.

That would work for certain things, thx.
 
Status
Not open for further replies.
Back
Top