LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to load Windows "On-Screen Keyboard" application using LabVIEW

Solved!
Go to solution

Hi,

     As suugesteed by you I gave the full path I am getting a error - Unable to open osk.exe, kindly see the attachment.

 

Regards,

Bharath

0 Kudos
Message 11 of 28
(4,944 Views)

Hi visuman,

 

that error message is generated either by Windows or by OSK.exe as can be seen by its text. If the osk.exe wouldn't be found the text would be different!

OSK is found, but can't be started - that's quite a different error message!

 

I suspect it's some kind of access right problems...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 28
(4,936 Views)

HI GerdW,

 

Yes, its unable to start the exe. I have Admin privileges still unable to access OSK from LV.

But in another PC, i am able to do it.

 

Am just curious to know ,why its not happening in my laptop.

 

Regards,

Bijay

CLD

 

0 Kudos
Message 13 of 28
(4,928 Views)

it seem to be an issue with access rights. if i use a different useraccount it won't work for me as well.

but interestingly it works out of the temp directory

 

C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files\keyboard.vi

 

so i figure a batchfile with runas should hopefully do the trick. i will give it a try

0 Kudos
Message 14 of 28
(4,924 Views)

Give this a try hopefully it works for you

 

Keyboardrun.png

0 Kudos
Message 15 of 28
(4,919 Views)

Hi Ofahed,

 

Tried all those cmds Smiley Sad

 

Regards,

Bijay

CLD

0 Kudos
Message 16 of 28
(4,928 Views)

Hi Bijay

 

yea i see your troubles and i bet you have tried all different prossible ways.

 

this might be not the best solution but since system32 either require adminrights to call osk. you either have to create a batch or vbs ... or whatever to call osk.exe with adminrights.

 

An different approve would be to create a copy of the file C:\Windows\System32\osk.exe in your project and call this one, you should have the rights to call this file (osk.exe)

 

To test it i copied the osk.exe on my desktop. This might be an option

retry.png

0 Kudos
Message 17 of 28
(4,923 Views)

I copied osk.exe to desktop and gave the path as mentioned but still can't access from LV.

But really its a good learning for me. Smiley Happy

 

I hope Visuman gets his issue resolved and post the solution soon Smiley Very Happy

 

Regards,

BIjay

CLD

 

 

0 Kudos
Message 18 of 28
(4,915 Views)

haha ok, sorry, but keep on trying Smiley Wink

 

still the same error?

 

 

0 Kudos
Message 19 of 28
(4,912 Views)

Hi all,

          Atlast it happened, as said it was access problem. I tried with a computer which has admin privillege and it works.

Thanks for every one.

Regards,

Bharath

0 Kudos
Message 20 of 28
(4,899 Views)