Hello Guest it is September 28, 2021, 01:06:49 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Dennyz

Pages: 1
I have been searching for an explanation for this, with no success.

Machscreen Screen Designer / Macros and VB Subroutines/Functions
« on: December 16, 2012, 08:05:15 PM »
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 )

Pages: 1