• 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.

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.
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
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.
 

Deleted member 177737

D

Deleted member 177737

Darn, I wanted to use the letter keys (A-Z). Thx anyways tho.
 
Level 5
Joined
Oct 14, 2010
Messages
100
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.
 

Deleted member 177737

D

Deleted member 177737

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.
Top