Hot Topic (More than 10 Replies) Win7 osk.exe trouble (Read 6980 times)
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Win7 osk.exe trouble
Jan 21st, 2011 at 1:04pm
Print Post Print Post  
I'm using @AsynchShell("C:\Windows\System32\osk.exe") on Win XP and Vista machines without trouble to open the On-Screen-Keyboard, it does not work on the Win7 machines. If I type "C:\Windows\System32\osk.exe" (or just osk.exe) directly into run on the Win7 machines, the keyboard opens. @AsynchShell works to merge documents on the Win7 machines without trouble.

Any ideas?
  
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re:  Win7 osk.exe trouble
Reply #1 - Jan 21st, 2011 at 1:13pm
Print Post Print Post  
The Win7 machines are 64bit, could this be an issue?
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re:  Win7 osk.exe trouble
Reply #2 - Jan 21st, 2011 at 3:59pm
Print Post Print Post  
Just a thought without booting into Windows 7, Try just @AsynchShell("osk.exe")

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re:  Win7 osk.exe trouble
Reply #3 - Jan 21st, 2011 at 4:31pm
Print Post Print Post  
Hi Ray,

I changed the code to you recommendation. It said it couldn't find it in Sesame2. So, I copied OSK.exe from \System32 and placed it in \Sesame2 and it worked. But, it seems that it will only work in Add Data mode and not in Search or Update mode.

Also, I'm assuming that "not booting into Windows 7" means to simply run it as @AsynchShell("osk.exe"), and that running it as C:\Windows\System32\osk.exe boots it into Windows 7, is that correct?
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re:  Win7 osk.exe trouble
Reply #4 - Jan 21st, 2011 at 4:38pm
Print Post Print Post  
Hmm. The only working in Add mode is a bit confusing to me. What event is it on?

By not booting into windows 7 I meant the computer I am on is a multi-boot computer but usually runs Windows XP. In order to test I have to reboot it into windows 7. Sorry for the confusion.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re:  Win7 osk.exe trouble
Reply #5 - Jan 21st, 2011 at 4:42pm
Print Post Print Post  
On Element Entry
  
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re:  Win7 osk.exe trouble
Reply #6 - Jan 21st, 2011 at 4:50pm
Print Post Print Post  
Interesting, I created a new application with just a text LE and a command button. The button is to fire @AsynchShell("osk.exe") On Element Entry. It doesn't respect only "On Element Entry".  When you go to Add New Records, it automatically fires OSK. You are able to fire it with the button also. But still will not do it in Search or Update mode.
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re:  Win7 osk.exe trouble
Reply #7 - Jan 21st, 2011 at 5:12pm
Print Post Print Post  
Hello Brandon,

Can you send me the test application that you have?

Also I just booted into Windows 7 and ran @AsynchShell("C:\Windows\System32\osk.exe") and the On Screen Keyboard appeared. It took 30 seconds but it did appear. So I'm wondering if Windows believes Sesame does not have rights to run programs in the C:\Windows\System32 directory on your system.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re:  Win7 osk.exe trouble
Reply #8 - Jan 21st, 2011 at 5:31pm
Print Post Print Post  
Sure, to support@lantica.com?
  
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re:  Win7 osk.exe trouble
Reply #9 - Jan 21st, 2011 at 6:01pm
Print Post Print Post  
Yes.

Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re:  Win7 osk.exe trouble
Reply #10 - Jan 21st, 2011 at 9:49pm
Print Post Print Post  
Hello Brandon,

Your progamming is in the Form's on Element Entry event which will not run in Search. You want it to be in the osk0::On Element Entry event. Then it will work in all 3 modes.

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged
 
tcgeo
Full Member
***
Offline



Posts: 278
Location: Traverse City, Michigan
Joined: May 13th, 2008
Re:  Win7 osk.exe trouble
Reply #11 - Jan 22nd, 2011 at 2:24am
Print Post Print Post  
Hi Ray,

Yes, that was a careless mistake. After correcting it, it worked fine. However, it would not work in the application that I initially had trouble with. I really had no idea what to look for in the code because it has been working on XP and Vista machines for quite some time without issue. The only thing that stuck out was that I had used STOP in four places throughout the application. In one of your responses to another post you said to use a “Quitflag” instead of STOP. At that time I had completely forgotten that I had used STOP in any of my applications. So, I removed STOP and applied the Quitflag and all is working perfectly with @AsynchShell("osk.exe"). It will not work with @AsynchShell("C:\Windows\System32\osk.exe").

So, I believe, the moral of the story is, don’t use STOP.

Thank you for all of your time and help on this, my client is happy again!

Brandon

P.S. I'm using CreateAProcess("taskkill /im osk.exe /f /t") to close the keyboard. Do you know of a way to hide the command window when taskill is called?
  
Back to top
IP Logged