Hello Guest it is April 24, 2026, 07:31:53 AM

Author Topic: simple numeric keyboard for input in DRO  (Read 181012 times)

0 Members and 1 Guest are viewing this topic.

Re: simple numeric keyboard for input in DRO
« Reply #10 on: April 21, 2026, 02:22:39 PM »
Sorry but I thought this was modified for an MDI input keyboard on Reply #3. Not being able to write scripts/code makes some functions difficult. Thank you for the reply.

Offline TPS

*
  •  2,627 2,627
Re: simple numeric keyboard for input in DRO
« Reply #11 on: April 22, 2026, 01:15:23 AM »
Sorry Thom,

you are right, version of reply #3 is for a MDI input.
i have made so many version's of it so i lost the "track" here.

but is is like a popup window.

in the attached screenset i made a MDI input via touch screen (page 50) years ago. 

« Last Edit: April 22, 2026, 01:26:23 AM by TPS »
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: simple numeric keyboard for input in DRO
« Reply #12 on: April 22, 2026, 04:54:33 AM »
I will give this a try, thank you.
Maybe you could give me an idea of how to place a numeric keyboard on the screen permanently for MDI.
I have a screen with number buttons, that's it so far.
Would you know of anyone who does this for monetary compensation?
After two years of trying myself, it's time to try another way.
Thank you again for your unselfish help and time.
TC
 

Offline TPS

*
  •  2,627 2,627
Re: simple numeric keyboard for input in DRO
« Reply #13 on: April 22, 2026, 06:58:57 AM »
hello TC,
you can have a look to the screenset i attached.
you can use MachScreen (https://kd-dietz.com/index_eng.html)
from Klaus to modify your screenset.

the basic idea i used in my screenset is to draw all key's you need in the
background picture, the place a transparent button over each key.
the button itselv contains a small basic script. i use a userlabel to add or delete
the individual key to a string.

for example the code for button G:
Code: [Select]
Sub Main()
SetUserLabel(255,GetUserLabel(255) + "G")
End Sub
does nothing else than adding a "G" at the end of the string and this is done in
each button for the specific letter.

the ENTER Key will have this code:
Code: [Select]
Sub Main()
  Code GetUserLabel(255)
  SetUserLabel(255,"")
End Sub
does nothing else than excecute the Code witch is in Userlabel(255) and clears Userlabel

the backspace button only cut's the last character of the string:
Code: [Select]
Sub Main()
SetUserLabel(255, Left(GetUserLabel(255),Len(GetUserLabel(255))-1))
End Sub
and so on.

there is no code check at all because Mach3 will verjfy it.

hope i could point you in the direction of my idea of this permanent "keyboard".

 
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.