ShellExecute ON WIN 7

ShellExecute ON WIN 7

Postby MdaSolution » Wed Jul 20, 2011 8:14 pm

I want execute the keyboard system but on win 7 not run

Local Keyboar:= GetEnv( "windir" ) + "\system32\osk.exe"

DEFINE DIALOG oDlg

....

ACTIVATE DIALOG oDlg CENTERED;
on init ShellExecute( 0, "open",TS, "", ".", .t. )
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: ShellExecute ON WIN 7

Postby Daniel Garcia-Gil » Wed Jul 20, 2011 11:09 pm

Hello

what is "TS" inside ShellExecute??

please try...

Code: Select all  Expand view

#include "fivewin.ch"

function main()

   local Keyboar:= GetEnv( "windir" ) + "\system32\osk.exe"

   define window oWnd
   activate window oWnd;
            on init( ShellExecute( 0, "open", Keyboar ) )

return nil
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: ShellExecute ON WIN 7

Postby MdaSolution » Thu Jul 21, 2011 11:28 pm

sorry I mke an error

Local Ts :=:= GetEnv( "windir" ) + "\system32\osk.exe"


and your sample not run on win 7 64 bit home premium

it show a dialog with " Impossible run keyboard on screen "
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: ShellExecute ON WIN 7

Postby MdaSolution » Mon Jul 25, 2011 11:00 am

Any solution ?
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: ShellExecute ON WIN 7

Postby ukservice » Mon Jul 25, 2011 1:37 pm

I run osk.exe and It appers.

Maybe the osk.exe is not on your pc.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
User avatar
ukservice
 
Posts: 417
Joined: Tue Feb 23, 2010 3:09 pm
Location: John

Re: ShellExecute ON WIN 7

Postby nageswaragunupudi » Tue Jul 26, 2011 1:53 am

Please try copying osk.exe to some other folder and shellexecute from that folder.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: ShellExecute ON WIN 7

Postby MdaSolution » Wed Jul 27, 2011 10:13 pm

yes !!!
osk.exe is on my computer

I have windows Seven home premium 64 bit

if run osk from start-> it is showed on my desktop

I want show it from my application to use it with touch screen computer ( with no keyboard)

it is impossible with fhw ?

while I was waitng a message for this problem I created a virtual keyboard but I have a problem:

look :

Image


for each get I must open the virtual keyboard

but when I open the keyboard virtual I must insert the word I pressed into get of virtual keyboard

instead I want it must insert the key I pressed directly on the get of the dialog

as it make with osk of windows

for each buttons I use ACTION (MsgBeep(), oGetTexto:SetFocus(), oGetTexto:KeyChar(ASC("Q")) )

where oGetTexto is the get of virtual keyboard

how I can to make it ?
FWH .. BC582.. xharbour
User avatar
MdaSolution
 
Posts: 401
Joined: Tue Jan 05, 2010 2:33 pm

Re: ShellExecute ON WIN 7

Postby Francisco Horta » Wed Jan 04, 2012 3:57 pm

hola foro,

pues tuve la necesidad de usar osk.exe, y si carga bien el teclado, nomas que tengo 2 dudas:

1. al cerrar la ventana del osk.exe me envia el caracter "[" al get de busqueda, como evitar esto?
2. como cierro el osk.exe cuando se cierra el dialogo en el que se abrio

gracias
paco
____________________
Paco
Francisco Horta
 
Posts: 845
Joined: Sun Oct 09, 2005 5:36 pm
Location: la laguna, mexico.

Re: ShellExecute ON WIN 7

Postby Francisco Horta » Wed Jan 04, 2012 4:58 pm

yo mismo,

resolved !!!
thks
paco
____________________
Paco
Francisco Horta
 
Posts: 845
Joined: Sun Oct 09, 2005 5:36 pm
Location: la laguna, mexico.

Re: ShellExecute ON WIN 7

Postby fivewin » Fri Jan 06, 2012 7:59 pm

Francisco,

Can you please share the solution?.

Thanks
fivewin
 
Posts: 4
Joined: Wed Jan 04, 2012 8:00 pm

Re: ShellExecute ON WIN 7

Postby Francisco Horta » Tue Jan 10, 2012 7:47 pm

FiveWidi,

LOCAL cKeyboard := GetEnv( "windir" ) + "\system32\osk.exe", lKeyboard := .f.

Abrirlo:
ShellExecute( 0, "open", cKeyboard )

Cerrarlo:
SendMessage( FindWindow( 0, "Teclado en pantalla" ), WM_CLOSE )

salu2
paco
____________________
Paco
Francisco Horta
 
Posts: 845
Joined: Sun Oct 09, 2005 5:36 pm
Location: la laguna, mexico.


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 71 guests