So it should go as the example BUT I am sure there are other ways it can be done
If GetUserDro(1999) < 5 Then
SetUserDro(1999,GetUserDro(1999)+1)
End If
If GetUserDro(1999) >= 5 Then
SetUserDro(1999,1)
End If
If GetUserDro(1999) = 1 Then
Message("Selecting X axis for Jogging")
DoOemButton(185)
End If
If GetUserDro(1999) = 2 Then
Message("Selecting Y axis for Jogging")
DoOemButton(186)
End If
If GetUserDro(1999) = 3 Then
Message("Selecting Z axis for Jogging")
DoOemButton(187)
End If
If GetUserDro(1999) = 4 Then
Message("Selecting A axis for Jogging")
DoOemButton(188)
End If
End