Prev: How to exclude hidden directories from path
Next: How to send data using sound wave as carrier.
From: Walter Roberson on 12 Jun 2010 23:22 andandgui isler wrote: > > kbd.keyPress(KeyEvent.VK_O) works but, > kbd.keyPress(KeyEvent.VK_DEAD_ABOVEDOT) doen't work on my computer http://www.w3.org/2002/09/tests/KeyEventDemo.java is a demo that will show you key presses and releases, so you could use that to query what any particular key sequence becomes.
From: us on 13 Jun 2010 07:29 Walter Roberson <roberson(a)hushmail.com> wrote in message <Z9YQn.141488$0M5.69462(a)newsfe07.iad>... > andandgui isler wrote: > > > > > kbd.keyPress(KeyEvent.VK_O) works but, > > kbd.keyPress(KeyEvent.VK_DEAD_ABOVEDOT) doen't work on my computer > > http://www.w3.org/2002/09/tests/KeyEventDemo.java > > is a demo that will show you key presses and releases, so you could use > that to query what any particular key sequence becomes. as i said: this approach does not work from within genuine ML (at least in wintel envs)... just look at my replies... us
From: Walter Roberson on 13 Jun 2010 20:56 us wrote: > Walter Roberson <roberson(a)hushmail.com> wrote in message > <Z9YQn.141488$0M5.69462(a)newsfe07.iad>... >> andandgui isler wrote: >> >> > > kbd.keyPress(KeyEvent.VK_O) works but, >> > kbd.keyPress(KeyEvent.VK_DEAD_ABOVEDOT) doen't work on my computer >> >> http://www.w3.org/2002/09/tests/KeyEventDemo.java >> >> is a demo that will show you key presses and releases, so you could >> use that to query what any particular key sequence becomes. > > as i said: this approach does not work from within genuine ML (at least > in wintel envs)... > just look at my replies... That isn't immediately clear, as the demo might show a completely different key sequence; or plausibly if run until Matlab, the demo would show the key sequences that Matlab wants. For example, plausibly the demo would show the VK_DEAD_ABOVEDOT *after* the vowel -- since, after all, Matlab did not complain that VK_DEAD_ABOVEDOT was an invalid field or method.
From: us on 13 Jun 2010 21:05 Walter Roberson <roberson(a)hushmail.com> wrote in message <Q6fRn.30436$yx.20773(a)newsfe13.iad>... > us wrote: > > Walter Roberson <roberson(a)hushmail.com> wrote in message > > <Z9YQn.141488$0M5.69462(a)newsfe07.iad>... > >> andandgui isler wrote: > >> > >> > > kbd.keyPress(KeyEvent.VK_O) works but, > >> > kbd.keyPress(KeyEvent.VK_DEAD_ABOVEDOT) doen't work on my computer > >> > >> http://www.w3.org/2002/09/tests/KeyEventDemo.java > >> > >> is a demo that will show you key presses and releases, so you could > >> use that to query what any particular key sequence becomes. > > > > as i said: this approach does not work from within genuine ML (at least > > in wintel envs)... > > just look at my replies... > > That isn't immediately clear, as the demo might show a completely > different key sequence; or plausibly if run until Matlab, the demo would > show the key sequences that Matlab wants. > > For example, plausibly the demo would show the VK_DEAD_ABOVEDOT *after* > the vowel -- since, after all, Matlab did not complain that > VK_DEAD_ABOVEDOT was an invalid field or method. yes it does, walter look in my replies above to see the error message it pukes... us
From: Walter Roberson on 14 Jun 2010 12:52 us wrote: > Walter Roberson <roberson(a)hushmail.com> wrote in message > <Q6fRn.30436$yx.20773(a)newsfe13.iad>... >> us wrote: >> > Walter Roberson <roberson(a)hushmail.com> wrote in message > >> <Z9YQn.141488$0M5.69462(a)newsfe07.iad>... >> >> andandgui isler wrote: >> >> >> >> > > kbd.keyPress(KeyEvent.VK_O) works but, >> >> > kbd.keyPress(KeyEvent.VK_DEAD_ABOVEDOT) doen't work on my computer >> >> >> >> http://www.w3.org/2002/09/tests/KeyEventDemo.java >> >> >> >> is a demo that will show you key presses and releases, so you could >> >> use that to query what any particular key sequence becomes. >> > > as i said: this approach does not work from within genuine ML (at >> least > in wintel envs)... >> > just look at my replies... >> >> That isn't immediately clear, as the demo might show a completely >> different key sequence; or plausibly if run until Matlab, the demo >> would show the key sequences that Matlab wants. >> >> For example, plausibly the demo would show the VK_DEAD_ABOVEDOT >> *after* the vowel -- since, after all, Matlab did not complain that >> VK_DEAD_ABOVEDOT was an invalid field or method. > > yes it does, walter > look in my replies above to see the error message it pukes... Looking around, it appears that this is a common Java Robot problem not specific to Matlab. The discussion I found at https://bugs.eclipse.org/bugs/show_bug.cgi?format=multiple&id=280562 hints that the work-around is to code each key press literally, such as VK_CONTROL VK_RIGHT_ALT VK_SHIFT VK_QUOTE VK_O and then the release events for those in the opposite order. (I do not have a PC available to test the exact key sequence with.) By the way: the discussions above show the problem being debugged by use of the exact demo that I pointed to...
First
|
Prev
|
Pages: 1 2 3 Prev: How to exclude hidden directories from path Next: How to send data using sound wave as carrier. |