8 Replies - 1562 Views - Last Post: 20 January 2013 - 12:49 PM

#1 hafez  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-January 13

Windows on-screen keyboard

Posted 20 January 2013 - 08:28 AM

I have a JSP page with a button inside. When i click the button, windows on-screen keyboard will pop up.
How do I do it?
I've done research and I've found "Runtime.getRuntime().exec("osk");"
but where do I implement these line? do I put it in servlet? or at my jsp page?
<td><INPUT type="button" value="on screen keyboard" onclick="Runtime.getRuntime().exec("osk");"/>
?

Is This A Good Question/Topic? 0
  • +

Replies To: Windows on-screen keyboard

#2 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2640
  • View blog
  • Posts: 11,155
  • Joined: 20-September 08

Re: Windows on-screen keyboard

Posted 20 January 2013 - 08:34 AM

The only way you can execute client side is by using a signed applet. Your Runtime.exec would go in the applet code
Was This Post Helpful? 0
  • +
  • -

#3 farrell2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 822
  • View blog
  • Posts: 2,529
  • Joined: 29-July 11

Re: Windows on-screen keyboard

Posted 20 January 2013 - 08:37 AM

In a servlet? You're going to have to roll your own keyboard.
Was This Post Helpful? 0
  • +
  • -

#4 hafez  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-January 13

Re: Windows on-screen keyboard

Posted 20 January 2013 - 08:42 AM

So in other words its impossible to execute a windows on-screen keyboard on a jsp page?
Was This Post Helpful? 0
  • +
  • -

#5 farrell2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 822
  • View blog
  • Posts: 2,529
  • Joined: 29-July 11

Re: Windows on-screen keyboard

Posted 20 January 2013 - 08:51 AM

Probably not impossible, if you follow G00se's advise. The problem with that is that you're using an applet. What's the point? Just roll your own in Java.

This post has been edited by farrell2k: 20 January 2013 - 09:03 AM

Was This Post Helpful? 0
  • +
  • -

#6 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2640
  • View blog
  • Posts: 11,155
  • Joined: 20-September 08

Re: Windows on-screen keyboard

Posted 20 January 2013 - 10:22 AM

Why do you want an on-screen keyboard btw?
Was This Post Helpful? 0
  • +
  • -

#7 farrell2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 822
  • View blog
  • Posts: 2,529
  • Joined: 29-July 11

Re: Windows on-screen keyboard

Posted 20 January 2013 - 10:24 AM

Not only why do you want it, but what do you actually expect to do with it? I hope you're not planning to capture input from it with Java...on a web page.
Was This Post Helpful? 0
  • +
  • -

#8 hafez  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 20-January 13

Re: Windows on-screen keyboard

Posted 20 January 2013 - 11:02 AM

well, i was thinking of implementing on-screen keyboard to prevent keylogger..
Was This Post Helpful? 0
  • +
  • -

#9 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2640
  • View blog
  • Posts: 11,155
  • Joined: 20-September 08

Re: Windows on-screen keyboard

Posted 20 January 2013 - 12:49 PM

Then you do indeed have a problem if you have to sidestep a keylogger instead of eradicating it
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1