Page 2 of 5

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Wed Nov 21, 2018 10:26 pm
by Auge_Ohr
rdonnay wrote:I will create a new OSK class and a sample and post it in this forum.
how to modify for German QWERTZ :?:
where you get Bitmap from :?:

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Thu Nov 22, 2018 2:41 am
by Tom
These are DCXBPPUSHBUTTONS, Jimmy. No bitmaps. Just ownerdrawing.

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Thu Nov 22, 2018 3:34 am
by Auge_Ohr
hi Tom,

i just saw those *.BMP in \exp20\Samples\Touchscr\ but no German Umlaute ...

are there any Ownerdraw Keyboard Sample :?:

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Thu Nov 22, 2018 4:03 am
by Tom
@Jimmy: Those bitmaps are for the older keyboard samples. TOUCHSCR3.PRG works with ownerdrawing.

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Thu Nov 22, 2018 4:57 am
by digitsoft
Thanks to everyone for helping me

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Thu Nov 22, 2018 5:30 am
by digitsoft
Hello I have not been able to load osk.exe as they have put in the examples, it tells me that it does not include it

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Thu Nov 22, 2018 7:24 am
by digitsoft
Hello Auge_Ohr
This example does not work
Auge_Ohr wrote:try

Code: Select all

   SHELLOPENFILE( "C:\WINDOWS\system32\", "osk.exe" )

FUNCTION SHELLOPENFILE( cPath, cFILE, cPara )

   lSuccess := DllCall( "SHELL32.DLL"  , DLL_STDCALL, ;
               "ShellExecuteA", AppDesktop():GetHWND(), "open", cPath+cFile,;
               cPara, CurDir(), SW_NORMAL )

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Thu Nov 22, 2018 10:22 am
by patito
Hi Nolber

Use trunprocess, it's much safer, it's in ot4xb.dll
Then he tells me if it's effective.

Best Regard

PROCEDURE main( LcP1,LcP2,LcP3,LcP4,LcP5,LcP6)
local oProcess := TRunProcess():New()

oProcess:cAppName := NIL
oProcess:cParams := NIL
oProcess:cCmdLine := "java -jar firmafedian.jar " + alltrim(LcP2) + " " +;
alltrim(LcP3)+ " " + alltrim(LcP4)+ " " + alltrim(LcP5) + " " + alltrim(LcP6)
oProcess:lUseShowWindow := .T.
oProcess:wShowWindow := oProcess:swHide

if oProcess:Start()
while !oProcess:Wait( 250 ) // Wait 0,25 seconds
enddo
oProcess:Release()
endif

return .T.

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Thu Nov 22, 2018 10:24 am
by rdonnay
Here is an OSK sample program.

Re: How to activate the Windows Virtual Keyboard from eXpres

Posted: Thu Nov 22, 2018 10:56 am
by Auge_Ohr
digitsoft wrote:This example does not work
are you running under 64 Bit ?