1521
VB and the development of wizards / Re: Y axis manual input
« on: January 02, 2019, 03:07:33 PM »
ok sorry for the delay,
first question no Problem, new code:
here i am not sure what would be the Trigger for "comming up" of the Keyboard (maybe the script, witch asks for the YPos?),
and how to trigge the Keyboard?
TPS
BTW:witch virtual Keyboard do you use? maybe i can choose a copy and test?
first question no Problem, new code:
Code: [Select]
Sub Main
'declare variables
Dim YPos As String
Dim YMinPos As Double
Dim YMaxPos As Double
'preset the variables
YMinPos = 1.0
YMaxPos = 50.0
'show the input Box
YPos = AskTextQuestion("Please enter Y Position (use . not , !): ")
'check that the entered value is numeric
If IsNumeric(YPos) Then
'check the minimal value
If CDbl(YPos) < YMinPos Then
MsgBox ("entered value too low !")
Exit Sub
End If
'check the maximal value
If CDbl(YPos) > YMaxPos Then
MsgBox ("entered value too high !")
Exit Sub
End If
Code "G0Y"+CStr(YPos)
Message "driving Y to: " & YPos
Else
MsgBox "Vaule you entered is not numeric!"
End If
End Sub
second question:Quote
And I have a virtual num pad that appears when the F9 key is pressed, is there a way to wmulate the F9 in a script so that the keypad comes up automatically
here i am not sure what would be the Trigger for "comming up" of the Keyboard (maybe the script, witch asks for the YPos?),
and how to trigge the Keyboard?
TPS
BTW:witch virtual Keyboard do you use? maybe i can choose a copy and test?