FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour ShellExecute ON WIN 7
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
ShellExecute ON WIN 7
Posted: Wed Jul 20, 2011 08: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
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 PM
Re: ShellExecute ON WIN 7
Posted: Wed Jul 20, 2011 11:09 PM
Hello

what is "TS" inside ShellExecute??

please try...

Code (fw): Select all Collapse
#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
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: ShellExecute ON WIN 7
Posted: 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
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: ShellExecute ON WIN 7
Posted: Mon Jul 25, 2011 11:00 AM

Any solution ?

FWH .. BC582.. xharbour
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: ShellExecute ON WIN 7
Posted: Mon Jul 25, 2011 01: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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: ShellExecute ON WIN 7
Posted: Tue Jul 26, 2011 01:53 AM

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

Regards



G. N. Rao.

Hyderabad, India
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: ShellExecute ON WIN 7
Posted: 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 :




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
Posts: 845
Joined: Sun Oct 09, 2005 05:36 PM
Re: ShellExecute ON WIN 7
Posted: Wed Jan 04, 2012 03: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
Posts: 845
Joined: Sun Oct 09, 2005 05:36 PM
Re: ShellExecute ON WIN 7
Posted: Wed Jan 04, 2012 04:58 PM

yo mismo,

resolved !!!
thks
paco

____________________

Paco
Posts: 4
Joined: Wed Jan 04, 2012 08:00 PM
Re: ShellExecute ON WIN 7
Posted: Fri Jan 06, 2012 07:59 PM

Francisco,

Can you please share the solution?.

Thanks

Posts: 845
Joined: Sun Oct 09, 2005 05:36 PM
Re: ShellExecute ON WIN 7
Posted: Tue Jan 10, 2012 07: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

Continue the discussion