since Dezsoe verified you can easily set the diagonal
jogging in hot keys by assigning 2 buttons to one hotkey, I'd go that route for simplicity over having 4 additional macros to push the buttons

.
To do the velocity changing in a macro, you'll set a velocity percent value into field # 913. Copy this into a macro and run:
- Code: Select all
//M20099 Sample velocity % changer
double velocity = 50; // enter desired % velocity here
AS3jog.Setfield(velocity, 913); // set velocity
AS3jog.Validatefield(913); //validate velocity input
if(!exec.Ismacrostopped())
{
MessageBox.Show("Velocity set!"); // comment this out after verifies it works
}
else
{
exec.StopWithDeccel();
MessageBox.Show("?? what happened!"); // error for some reason
}
I believe trying to pickup up a keypress directly from a macro is somewhat difficult, so if you want 4 speeds, save the above as 4 different macros and assign each to a hotkey as the easiest way.
regards,
Eric