LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Close OSK

 Hello All,

 

I would like to close the On Screen Keyboard programmatically, When i run "task kill" i get an error message as shown. How can i do this??

 

Capture.PNG

---
Silver_Shaper | CLD
0 Kudos
Message 1 of 11
(5,504 Views)

How do you format the taskkill command?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 11
(5,499 Views)

How do you format the taskkill command?

 

The command format is "taskkill /im <process Name> /f". You need to have admin rights to perform this.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 11
(5,493 Views)

Hey Anand

 

It doesnt close the osk. Works on other programs.Smiley Mad

---
Silver_Shaper | CLD
0 Kudos
Message 4 of 11
(5,474 Views)

So you always get the same error? I have windows 7 and have admin rights, it worked without an issue. What is your OS?

 

Also did you check the error in Terminal for the system exec.vi?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 5 of 11
(5,471 Views)

Windows 7 only. How do i enter in admin mode using command prompt itself.

---
Silver_Shaper | CLD
0 Kudos
Message 6 of 11
(5,466 Views)

I am afraid you cannot do that. Even if you are not in the admin mode you will not get the error, you would get a standard error from the "Standard error" output. Clear the error before the "System exec.vi" and then execute and also check the Standard error and other output.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 7 of 11
(5,454 Views)

Anand.

 

I am aware that standard error output terminal. It says "access is denied". Thats why asked how to enter admin mode to execute the same

---
Silver_Shaper | CLD
0 Kudos
Message 8 of 11
(5,448 Views)

Hey All,

 

Any inputs on how to enter admin mode in command prompt using system exec.

---
Silver_Shaper | CLD
0 Kudos
Message 9 of 11
(5,420 Views)

Hi Shaper,

 

No clues about it using command prompt using system exec BUT

after building your app, you can modify your application access level by modifing the manifest file.

I bet these links can help you for that ;

http://zone.ni.com/reference/en-XX/help/371361K-01/lvdialog/windows_security_page/

http://zone.ni.com/reference/en-XX/help/371361K-01/lvhowto/editing_app_manifests/

 

BR,

Vincent

0 Kudos
Message 10 of 11
(5,400 Views)