NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Traders
Posts: 23
0 Kudos
Accepted Solution

RUN Object will not start Windows On-Screen Keyboard

I am running Lookout 6.5 on Windows 7 Professional. I am using a pushbutton to fire a Sequencer whose A output starts a RUN object with a command line of "c:\Windows\system32\osk.exe". The RUN object executes, but I get a window that says "Could not start On-Screen Keyboard". The window only has "OK" as an option - click on OK and the window disappears. I have tried the same RUN object with notepad.exe and wordpad.exe, and these work fine.

Anyone see what I'm missing?

Active Participant
Ryan.S
Posts: 1,660
0 Kudos

Re: RUN Object will not start Windows On-Screen Keyboard

I'm able to use the Run object to launch the osk on windows 7.

 

What if you run the command in window's Run? 

Ryan Shi
National Instruments
Member
Traders
Posts: 23

Re: RUN Object will not start Windows On-Screen Keyboard

Thanks for your reponse, Ryan.

I have now found a solution - but first a few puzzlers. I can successfully use the Lookout RUN object to start other executables in the Windows\system32 folder - but not the osk. I can start the osk by other means (shorcut, double-click on the .exe, starting from a bat file).

I copied the osk.exe to another folder on the hard drive and can now start it with the Lookout RUN object. I'm not sure why this works differently - but it does. Thanks.

Active Participant
Ryan.S
Posts: 1,660
0 Kudos

Re: RUN Object will not start Windows On-Screen Keyboard

Maybe it's the security issue. The windows user that launches Lookout doesn't have enough privilege to execute the exe in system32 folder.
Ryan Shi
National Instruments
Member
Franjo Tonkovic
Posts: 4
0 Kudos

Re: RUN Object will not start Windows On-Screen Keyboard

Hi,

I have very similar problem but proposed solution is not working for me!

I tried to copy osk.exe in different folders but just doesn't work, I am all the time getting an error:

"Could not start On-Screen Keyboard"

I can launch osk without any problems from windows explorer and from command prompt!

 

I am using Labview 2009 SP1 and Windows 7 Professional!

 

Any new ideas how to solve the problem?!

 

Regards

Franjo Tonković

Member
Wim.Tormans
Posts: 10
0 Kudos

Re: RUN Object will not start Windows On-Screen Keyboard

Hi franjo,

 

same problem here.

 

Did you find a solution ?

 

Regards,

 

Wim

Member
Franjo Tonkovic
Posts: 4
0 Kudos

Re: RUN Object will not start Windows On-Screen Keyboard

Hi,

I managed to solve the issue. Since changing the folder didnt help, I additionaly tried with renaming "osk.exe" and it did help!

Regards

Franjo

Member
drval
Posts: 127
0 Kudos

Re: RUN Object will not start Windows On-Screen Keyboard

Franjo

 

My guess is that this worked because, somehow, the Copy operation modified the permissions.  It might be good to verify that because otherwise it might not work correctly in a deployed, built app.

 

val

 



Hi,

I managed to solve the issue. Since changing the folder didnt help, I additionaly tried with renaming "osk.exe" and it did help!

Regards

Member
LindaDN8
Posts: 1
0 Kudos

Re: RUN Object will not start Windows On-Screen Keyboard

I'm having the same problem. I will try to do the solutions you guys recommend. we'll see what happens. Will keep you posted on the result. Thanks in advance!
Linda K. Newlin
Member
LV_user1
Posts: 134
0 Kudos

Re: RUN Object will not start Windows On-Screen Keyboard

Hi All,

 

 

The likely reason why it's not working is that you're probably using 32-bit LabVIEW, but running on a 64-bit OS. Windows is not allowing you to call the osk.exe that it comes with since it's 64-bit. When you copied the osk.exe from Windows XP you copied the 32-bit version, and that's why it worked. If you were running LabVIEW 64-bit you wouldn't have an issue.

plz provide comments if this was the issue

-Certified LabVIEW Developer
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page