I been trying to get this work but had no luck, the first press works and save the Var butt loses it on the 2nd press and give a error, how to save make the Var stay during the cycles >.<
[RoutineDef,Test,
//Create Memory Block to store which cycle the macro is on
[If,[MemGetSize,MP_MaskCycleMemBlock],,
//Create and then set to 0
[MVarDef,MP_MaskCycleMemBlock,1,0]
[MVarSet,MP_MaskCycleMemBlock,0,0] //CurrentCycle
]
[VarSet,CurrentCycle,[MVarGet,MP_MaskCycleMemBlock,0]]
//Get Subtool
[If,CurrentCycle==0,
[VarSet,toolID,[IGet,Tool:Item Info]]
,]
//Go To Subtool
[If,CurrentCycle==1,
[ISet,Tool:Item Info,toolID]
,]
[If,CurrentCycle>=2,
[VarSet,CurrentCycle,0]
[MVarSet,MP_MaskCycleMemBlock,0,CurrentCycle]
,
[MVarSet,MP_MaskCycleMemBlock,0,CurrentCycle+1]
]
]//Routine Test
[IButton,???,“Toggles to Subtool. (Hotkey for best use!)”,
[IShowActions,0]
[IConfig,4.73]
//[IFreeze,
[RoutineCall,Test]
//]
,1,]
