| 07-17-2004, 06:48 AM | #1 |
This has been posted in the Trigger forum but there seems to be no answer with the conventional triggers. NOTE: I am very new to JASS What I need is a function that When ANY key is pressed, it runs the trigger coresponding to that key. Such as, [ and ] could scroll (select) between your buldings in the order that they were created. IE, switch between them. This is not the trigger that I am trying to create, but if I could do this, I will be able to adapt to what I want, I hope. |
| 07-18-2004, 01:08 AM | #2 | |
Quote:
you can only catch keys if they are typed as text not pressed there are ways of catching pressed keys but they are fairly funky and i dont think they would work well either bc you said all keys. if you can specify when you want the ability for the person to press a key then there might be a semisolution w/ hotkeys and spells. if you could tell me what your really trying to do or just why you want to do this i could help more. my answer is that theres no official way (as in theres an event) to catch keys unless they are typed. |
| 07-18-2004, 04:04 PM | #3 |
In my knowledge the only keys you cant detect is: Up-arrow, Down-arrow, Left-arrow, Right-arrow and the escape key. And you can detect theese at any time without using JASS. |
| 07-19-2004, 03:30 AM | #4 | |
Quote:
i should of said that.. sorry :( |
| 07-19-2004, 04:48 AM | #5 |
I made a similiar post about this on the trigger forums, I know about the Esc, Arrow keys. Hmm, I will have to find a way to use the other keys, i will probably have to use hotkeys in a building or something. Thanks anyways. |
