LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

finding an on-screen keyboard

I have an application that runs on a touch screen where users have to input numbers.  I would like to use an on-screen keyboard, preferably just a numeric pad.
I've seen the on-screen keyboard that is built in Windows (way too small for my small touchscreen) and another application that uses an on-screen keyboard that I dont care for.  Is there a convenient program out there for LabVIEW?
Ron Deavers, CLD
0 Kudos
Message 1 of 9
(5,606 Views)

Hello,

 

The first thing I thought of when reading your post was a really simple numeric keypad in one of the shipping examples with LabVIEW 7.1:  examples\sound\sound adv.llb\Sim Phone.vi.  Unfortunately, I can't seem to find that example in LabVIEW 8.0.

 

-D

0 Kudos
Message 2 of 9
(5,599 Views)
The built in Windows keyboard would be great if it wasnt so small because all I have to do is click on the text box and that is where the text automatically goes.  I would like to have a subVI or something similar to do this.
Ron Deavers, CLD
0 Kudos
Message 3 of 9
(5,592 Views)

If you go to the search field on the very top of the page, change it from the forums to the entire site and search for "keyboard example" or "virtual keyboard" you should find a few useful examples you can modify.

Note that if you want to type into another application that will be more complex. I'm not sure what the details are, but maybe you will need to move window the window to the top to get the text into it. Another option is probably inserting a message into the window's message queue, but that's just a guess. In any case, winutil may be able to help you (you can find it on the site).

If you're doing this inside your own application, then you shouldn't have any problems - you can just get the string and then transfer it to your field.


___________________
Try to take over the world!
0 Kudos
Message 4 of 9
(5,577 Views)

I hacked this v7.1.1 snippet together in a couple minutes, it is not complete but should give you the idea. Disregard the enter key, using stop button should work to demo it as a sub vi.

Hope it helps

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 5 of 9
(5,573 Views)
Here's another one. One thing that's missing is a check that you don't enter multiple decimal points.

Message Edited by Dennis Knutson on 12-07-2005 03:30 PM

Message 6 of 9
(5,566 Views)

I would also like to suggest looking at something similar in NI's own calculator interface in the Express Formula VI.  Maybe you could reuse some of the subVIs that it already uses.

The location is in LabVIEW\vi.lib\express\express arith-compare\FormulaConfig.llb\Configure Formula.vi

Hope that this helps,

Bob Young

 

0 Kudos
Message 7 of 9
(5,559 Views)
I assume that the examples posted should help the original poster, but this thread did get me thinking - I do use touchscreens fairly often and the windows OSK is very small for such uses.
Making a replacement would be a very good thing, but would run into one serious problem - keeping the keyboard window always on top is easy, but the question would be how to let the other window keep the focus while I'm typing and send the keys I'm typing to that window and to the selected field? I assume it can be done, but before I start searching for it - does anyone know how to do this?

___________________
Try to take over the world!
0 Kudos
Message 8 of 9
(5,536 Views)

Thank you very much for all your help.  I'll see what I can do with these.  That is exactly what I am looking for tst.  You would think that it would be a standard with LabVIEW.  I would be glad to stick with the Windows keyboard but it is just too small for my touchscreen, which is 10".

Again, thank you very much.

Ron Deavers, CLD
0 Kudos
Message 9 of 9
(5,519 Views)