How to activate the Windows Virtual Keyboard from eXpress

This forum is for eXpress++ general support.
Message
Author
User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

How to activate the Windows Virtual Keyboard from eXpress

#1 Post by digitsoft »

How to activate the Windows Virtual Keyboard from eXpress
Nolberto Paulino
Regards

User avatar
Tom
Posts: 1170
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: How to activate the Windows Virtual Keyboard from eXpres

#2 Post by Tom »

Use Runshell. The application name of the keyboard is "osk.exe".
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How to activate the Windows Virtual Keyboard from eXpres

#3 Post by rdonnay »

Use Runshell. The application name of the keyboard is "osk.exe".
I am working on several KIOSK applications for the Taxi system.
We have a screen with a lot of required data entry.
We are still evaluating whether it is better to give them a physical keyboard instead of OSK.EXE.
I have never been successful at getting OSK.EXE to run from RunShell() without an error.
Thus, I wrote a popup keyboard in Xbase++.

We have to start OSK.EXE before starting the KIOSK.
We don't need it for most screens. Only for the large data form.

Are you using it in your application?
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1170
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: How to activate the Windows Virtual Keyboard from eXpres

#4 Post by Tom »

No. We created our own on screen keyboard, resizeable und customizable, and people like it (it makes funny noises if you want).
But Nolberto asked how to activate the Windows-osk, and that's the question I answered. 8-)
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: How to activate the Windows Virtual Keyboard from eXpres

#5 Post by digitsoft »

hello Roger
I'm not using it at the moment I'm using what I've done is telling users to activate the windows keyboard when they need it, but it's very complicated for some users
rdonnay wrote:
Use Runshell. The application name of the keyboard is "osk.exe".
I am working on several KIOSK applications for the Taxi system.
We have a screen with a lot of required data entry.
We are still evaluating whether it is better to give them a physical keyboard instead of OSK.EXE.
I have never been successful at getting OSK.EXE to run from RunShell() without an error.
Thus, I wrote a popup keyboard in Xbase++.

We have to start OSK.EXE before starting the KIOSK.
We don't need it for most screens. Only for the large data form.

Are you using it in your application?
Nolberto Paulino
Regards

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: How to activate the Windows Virtual Keyboard from eXpres

#6 Post by digitsoft »

Thanks tom
but the truth is that I need a keyboard to adapt it to my system for Tablet.
If you have any examples please, pass it on.
Tom wrote:No. We created our own on screen keyboard, resizeable und customizable, and people like it (it makes funny noises if you want).
But Nolberto asked how to activate the Windows-osk, and that's the question I answered. 8-)
Nolberto Paulino
Regards

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: How to activate the Windows Virtual Keyboard from eXpres

#7 Post by digitsoft »

Hi, Could you explain how to load this PopKeyBoard function from HANDLER?




STATIC FUNCTION MyHandler( nEvent, mp1, mp2, oXbp, oDlgs, aGetList )
local i := 0, j


if nEvent == xbeM_Wheel .AND. oXbp:isDerivedFrom('XbpColumn')
SystemParametersInfoA( SPI_GETWHEELSCROLLLINES, 0, @i, 0 )
if i < 0
i := oXbp:parent:RowCount
END if
i := Int( (Mp2[2] / 360) * i )
i *= (-1)

DC_ClearEvents()
PostAppEvent( xbeBRW_Navigate, XBPBRW_Navigate_Skip, i, oXbp:parent )
return DCGUI_IGNORE
elseif nEvent == xbeP_SetInputFocus .AND. oXbp:isDerivedFrom('DC_XbpGet')
dcqout nEvent,xbeP_SetInputFocus

PopKeyBoard(nEvent, mp1, mp2, oXbp:parent, oDlg, .T. )

END if
return DCGUI_NONE
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How to activate the Windows Virtual Keyboard from eXpres

#8 Post by rdonnay »

Hi, Could you explain how to load this PopKeyBoard function from HANDLER?
I don't know what PopKeyBoard function you are referring to.
I suspect that you mean PopKeyPad() from \exp20\samples\touchscr\keypad.prg

This is very old code.

A much better one is the TouchKeyboard class in \exp20\samples\touchscr\keypad3.prg.
It requires no bitmap files. See attached screenshot.

What you are wanting is something that works like OSK.
This will take a few changes to the keypad3.prg code.

I will create a new OSK class and a sample and post it in this forum.
keypad3.jpg
keypad3.jpg (132.1 KiB) Viewed 14795 times
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: How to activate the Windows Virtual Keyboard from eXpres

#9 Post by rdonnay »

people like it (it makes funny noises if you want)
Funny is always good. :lol: :character-kermit:
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1406
Joined: Wed Feb 24, 2010 3:44 pm

Re: How to activate the Windows Virtual Keyboard from eXpres

#10 Post by Auge_Ohr »

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 )
greetings by OHR
Jimmy

Post Reply