11-28-2015 05:03 AM
Dear LabVIEW Professional Addicted,
Here i've attached what is my pblm. Typically when i'm click an open button that (open system keyboard)osk.exe automatically it opens and finally when i'm click the close button that command prompt says error.
ERROR:The process "osk.exe" with PID 3340 couldn't be terminated.
Reason: Access is denied. (cmd prompt says it)
Soln: If i'm open that .exe file as an system administrator permission(through CMD prompt) that ERROR wouldn't come.
Restriction: I've to open that file with system administrator permission(throughCMD prompt).
Is there any soln to clear that error?
11-28-2015 10:39 AM
Can you attach a real snippet (or preferably the actual VI) instead of a picture of a snippet?
Pictures don't show sufficient information, e.g.
Why are you using "Mouse up" events?
What is the mechanical action of the booleans?
What's in the timeout case?
11-28-2015 11:37 AM
OSK is the On Screen Keyboard developed by Microsoft for Windows XP (I believe). Searching the Web for it shows numerous posts (having nothing to do with LabVIEW) where people are having trouble invoking it. Given that, you may be (and probably are?) encountering an issue with using software not really "ready for Prime Time in Windows 7/8/8.1/10" (I presume you are no longer running Windows XP).
Taskkill is another Windows XP command. How it interacts with UAC is anyone's guess.
It is probably better to do whatever it is you want to do by some other means, preferably ones that are more LabVIEW-centric and rely less on hooks into the Operating System.
Bob Schor
12-05-2015 09:54 PM
Hi altenbach,
Tnk u for ur reply
Here I've attached that VI, That (OSK) should open with as an Administrator prompt.
Can u help me?
12-05-2015 10:17 PM
12-06-2015 04:03 AM - edited 12-06-2015 04:11 AM
The timeout case does NOT do anything. Delete it. Why do you use the "Mouse up" event? Just use simply the "Value change Event" for the buttons.
Change the mechanical action of the buttons to "Latch when released" from the "Switch until released". (https://www.youtube.com/watch?v=lvm3B2cLO90 , http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/changemechactofboolswitch/)
About the functionality: I tested your VI, and it works for me, the on screen keyboard starts. I have Windows10 x64 OS. However, the taskkill part does not function.
Edit: But why you need to launch this Win app from LabVIEW? You can just access it from Windows itself. What is your goal here with this "on screen keyboard"?
12-06-2015 05:19 AM
Hi Blokk,
Even me also it was worked, when i'm click open button (in windows 8.1 *64 bit) OSK is opened.
As per requirement i changed my mechanical action, stillnow it's couldn't close?
I need as per mention your status like as However, the taskkill part does not function.
12-06-2015 05:25 AM
@Traitor_Saravanan wrote:
Hi @Blokk,
Even me also it was worked, when i'm click open button (in windows 8.1 *64 bit) OSK is opened.
As per requirement i changed my mechanical action, stillnow it's couldn't close?
I need as per mention your status like as However, the taskkill part does not function.
The button mechanical action has nothing to do with the problematic system call functionality, I just wanted to mention other problems in your VI.
You still did not describe why you must start the on screen keyboard from LabVIEW? You place a shortcut on the desktop, and launch it from there... What is the benefit starting it from LabVIEW? Another thing you could consider to program your own keyboard panel inside LabVIEW. Google for it, you will find many examples...
To be honest, I do not really understand your English, and I guess you are dealing with the same problem when you try to understand what people write you in this forum. I guess this language barrier limits our communciation here 🙂 Do you use Google translate?
12-06-2015 06:35 AM
I'm already seen on ni website for that shorcut file program code. actually the thing is now i'm using touch screen monitor that's why. i don't need shortcut file option it from desktop, I want to access directly and even taskkill also.
can u help me?
12-06-2015 06:51 AM