1
General Mach Discussion / Macropump code trouble
« on: June 07, 2015, 02:55:36 AM »
Hi,
Having trouble getting a macropump to run
It seems like there is somethng wrong with the code/syntax in the if/then statements. With this removed, the pump runs and I can see the Macro calls counting in the message bar.
What am i doing wrong?
Having trouble getting a macropump to run
It seems like there is somethng wrong with the code/syntax in the if/then statements. With this removed, the pump runs and I can see the Macro calls counting in the message bar.
Code: [Select]
i=i+1
message" Macro Running #"&i
a=GetUserLed(2000)
If a = 0 Then
i=0
DoOemButton (1024)
While IsMoving()
Wend
DoOemButton (1023)
While IsMoving()
Wend
DoOemButton (1022)
While IsMoving()
DoOemButton (1026)
While IsMoving()
Wend
DoOEMButton(133)
DoOEMButton(134)
DoOEMButton(135)
End If
What am i doing wrong?