Page 1 of 1

How to capturemore than one keydown

PostPosted: Sun Jan 02, 2005 4:09 am
by Just4Fun
Happy New Year to all of the GE forum members...

I have a question on how to capture more than one keydown event at a time:
Is there a way,in script editor, to get the input from more than one key at a time?

Is there a way to write the following code correctly for such a test?

if (key[KEY_1] && key[KEY_0]== 1 && iResult ==10)
{
................
}

I would like to test for numbers >9. i.e. 10,11,12,...100,101,102,etc.
TIA

PostPosted: Sun Jan 02, 2005 11:50 am
by ingsan
Hello Rachel :)

To call two numbers, you'll have to call each number one after the other, using two or more variables.

EX for 10, you'll have to identify 1 then 0. It's the only solution I found. There are maybe a lot more :?

PostPosted: Mon Jan 03, 2005 2:00 am
by Just4Fun
Thank you, Ingrid.

Darn, I was hoping for a simpler solution, but if that is the only way, so be it!

Rachel