Machsupport Forum

Mach Discussion => Mach Screens => Topic started by: dischn2 on March 23, 2010, 05:18:17 PM

Title: Touchscreen buttons
Post by: dischn2 on March 23, 2010, 05:18:17 PM
Hi,

I just want to create a touchscreen set where I want to use buttons as a simple keyboard. I will have the numbers 0...9, the letters G, M, F, S, X, Z, I, K +/- . and Enter. So I think I don´t need an on screen keyboard nore a external keyboard.

I tried to use sendkeys "char" but the DROs and the MDI are just shortly flashing with the correct character and than they appear with no change.

Could you please help me with the code?

Thanks
Dirk
Title: Re: Touchscreen buttons
Post by: lordg on May 03, 2020, 05:06:05 PM
Same question here, can´t find any informations about it.
Title: Re: Touchscreen buttons
Post by: Graham Waterworth on May 03, 2020, 08:56:31 PM
https://www.comfort-software.com/on-screen-keyboard/ (https://www.comfort-software.com/on-screen-keyboard/)
Title: Re: Touchscreen buttons
Post by: TPS on May 04, 2020, 05:15:03 AM
here: https://www.machsupport.com/forum/index.php?topic=36213.msg247828#msg247828

i posted some code to do it with vb script.
Title: Re: Touchscreen buttons
Post by: lordg on May 04, 2020, 05:36:59 AM
@TPS

thank you for the script. Can it be used to do MDI Inputs?
Title: Re: Touchscreen buttons
Post by: TPS on May 04, 2020, 06:08:15 AM
not directly, you have to add some more Buttons (G,F,and so on) and modify the code

Code: [Select]
SetOEMDro(DRONum,CDbl(Dlg1.FText))
   

to
Code: [Select]
Code Dlg1.FText

it should do something simular.