PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → access on screen keyboard from windev
access on screen keyboard from windev
Iniciado por DevinPomsilina, 03,oct. 2022 09:03 - No hay respuesta
Miembro registrado
3 mensajes
Publicado el 03,octubre 2022 - 09:03
In Windows 8 and Windows 10 before Anniversary update (summer 2016) it was possible to show touch keyboard by using (french version) :

LanceAppliAssociée("C:\Program Files\Common Files\microsoft shared\ink\TabTip32.exe")
Since the anniversary update, it does not work anymore. Some people have found a workaround by simulating a clic on the tabtip icon on the systray. I thank them for this solution. You can find the original post here.

This is just the translation in windev code (french version):

EXTERNE "KeyConst.WL"
Handle_Systray,Handle_SystrayZoneNotif,Handle_BtnTabTip sont des entiers
Handle_Systray=API("User32","FindWindowA","Shell_TrayWnd",Null) //récupère le handle systray
SI Handle_Systray<>0 ALORS
Handle_SystrayZoneNotif=API("User32","FindWindowExA",Handle_Systray,Null,"TrayNotifyWnd",Null) //récupère le handle de zone de notification du systray
SI Handle_SystrayZoneNotif<>0 ALORS
Handle_BtnTabTip = API("User32","FindWindowExA",Handle_SystrayZoneNotif,Null,"TIPBand",Null) //récupère le handle du bouton du clavier virtuel
API("User32","PostMessageA",Handle_BtnTabTip,WM_LBUTTONDOWN,0,0) //simule le clic
API("User32","PostMessageA",Handle_BtnTabTip,WM_LBUTTONUP,0,0)
FIN
FIN