events - ActionScript simulate keyboard press -


I'm trying to emulate the pressure of the tab key I searched for a while and I have no answer to this met.

I tried:

  sender event (new keyboard event (keyboardEvent.cdiand, true, wrong, keyboard.TAB, 0, 0, false, false, false); < / Code> 

But nothing happens ..

Any sign on what is doing wrong? How do I press the keyboard?

You can not completely press a key because all users are not input and programmatic. However, a program The user responds (mostly) to input from. By starting an event through the event of dispatch, you (most) are going to rebuild what will happen if that user originated through input. .

What are you trying to achieve? Switch focusing on UI-elements?.

Insert tab location.

< / Html>

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -