Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: MyGarageShop on December 18, 2017, 09:28:17 PM

Title: Going Crazy... DoOEMButton() 307 to 332 X Axis to C Axis
Post by: MyGarageShop on December 18, 2017, 09:28:17 PM
I am pretty good at scripting but this is driving me crazy?
It should work but I cannot find much written about it

I am trying to add some scripting to the Mach3 Jog Buttons

If condition = True Then
    DoOEMButton(307)
End If

I created a button
Set the Standard Code to 34 Execute Basic Script
Execute Code is as above, even without  the If statement...  just the DoOEMButton(307)
No movement

If I switch the standard code to 307 it works fine but then I cannot check the conditions

Any help is appreciated