Hi all,
I though I would play around with building a custom screen for my Touch Screen Mach3 controller. I am using MachScreen V1.56. I have been able to put together a working screen using "Execute Basic Script" macros. I would like to create some Subroutines and Functions to stream line a few things. I can't for the life of me figure out how to get a button script (for example) to call a subroutine I created in the VB Script Editor. I have read through everything I can find, with no joy. I put a message box inside the subroutine to see if it was getting called and it is not. What am I missing?
example code (VB Script Editor):
Public Dim MyDRO as Integer
MyDRO = 1000
sub setdro( value as double)
setuserdro(MyDRO, value)
end Sub
example code (Button Script Code)
setdro( 1000.0001 )