How to test key!?

Discuss GUI programming with the MUI Royale plugin here
Post Reply
ArtBlink
Posts: 484
Joined: Mon Nov 01, 2010 10:37 am
Location: Albert - France
Contact:

How to test key!?

Post by ArtBlink »

HEllo,

Iskeydown don't work with texteditor... Do you know how i can test keyboard please?

Thanks
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to test key!?

Post by airsoftsoftwair »

You can create an object of type Hollywood class and then listen to "OnKeyDown". IsKeyDown() should work then too.
ArtBlink
Posts: 484
Joined: Mon Nov 01, 2010 10:37 am
Location: Albert - France
Contact:

Re: How to test key!?

Post by ArtBlink »

Ok, i test this, but not now, i would to test return key to inilialise my auto completion of hollywood command.

And if i use local variable, my script will be more speeder... yeahhh!!! i try this, thanks a lot
ArtBlink
Posts: 484
Joined: Mon Nov 01, 2010 10:37 am
Location: Albert - France
Contact:

Re: How to test key!?

Post by ArtBlink »

I test some code, but it don't work!!!????

have you got an exemple please ? ;-)

I want to test "RETURN" and "ENTER" key

Thanks for all
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to test key!?

Post by airsoftsoftwair »

Does your Hollywood object have keyboard focus? Try setting Window.ActiveObject to your Hollywood object.
Post Reply