To fill you in on whats going on, I am an art student designing an interactive installation trying to use a speech recognition software(dragon for mac) to play specific videos based on certain key words. for now using numbers.
I tried the obvious, just assigning videos to keyboard controls however dragon apparently does not actually send the keystroke signal properly for that to work. it only seems to write to a text field.
I have got it to work by using a text input control in a module and just reading the "live" input through the MessageEvent function. however I need it to be able to play videos one after another so i need the text field to clear after each use(or find some way to read only the most recent text input).
I have tried adding module.setValue( fieldName, 0, '' ) at the end of my script in MessageEvent, but the problem is this deselects the text control requiring me to click on it again with the mouse(which would kill the experience I am trying to create).
So my question is there anything I can add to my script to reselect the text field? or is there another way to clear it so that it does not deselect in the first place?