Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: jimmybondi on May 12, 2009, 12:44:36 PM

Title: need a hints "how to do" if possible ...
Post by: jimmybondi on May 12, 2009, 12:44:36 PM
Hi,

i need a feature and i'm not shure if it's possible:

when i'm on the MDI-Screen to lit a LED isn't a problem (or any other screen)

but to lit a LED (or activate an output) when on any screen the MDI-line is opened (waiting for input) - possible in any way ?


Regards Frank
Title: Re: need a hints "how to do" if possible ...
Post by: zealous on June 02, 2009, 11:51:23 PM
I'm not exactly sure of the issue you are having but you could create your own MDI input if you like:

Past this code on a Button:

Code: [Select]
Private Sub cmdok_Click()
Dim ans As String

MyGCode = InputBox("Enter Gcode", "My MDI")

If MyGCode = "" Then

MsgBox "Gcode Canceled"

Else

Code MyGCode

End If

End Sub