Hi Daniel,
Did you ever get the tutorial plugin running?
You can't just declare the scripter object. You must go through the steps to retrieve the IDispatch interface for Mach.
Sorry for the slow reply, since you created a new topic I didn't get an email that stuff was happening over here.
You must be sure Mach is idle before you can use the 'code' call. See the usage of IsMoving in the macros, you can do the same thing from the object model in C++;
-James