Hi Tobias, You are right, that is the way that works in quite a few environments but apparently not everywhere so it is not entirely reliable.
Petri 14.2.2013 21.48 "Tobias Fröschle" <tobias.froesc...@t-online.de> kirjoitti: > > Am 14.02.2013 um 20:15 schrieb Wolfgang Lenerz: > > > Le 14/02/2013 19:57, Petri Pellinen a écrit : > >> Yeah Java is kind of ugly in that sense, unless one is willing to take > the > >> hit of using JNA <http://en.wikipedia.org/wiki/Java_Native_Access> to > get > >> access to KeyboardUtils< > http://jna.java.net/javadoc/platform/com/sun/jna/platform/KeyboardUtils.html > >which > >> supposedly gets the job done in a fairly portable way. > >> > > > > ** shudder ** > > > > Öhm, > > it's quite some time when I was working as a Java developer, but how about > > > Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK); > > ?? > > Tobias > _______________________________________________ > QL-Users Mailing List > http://www.q-v-d.demon.co.uk/smsqe.htm > _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm