11
Finished Plugins for Download / Re: USB JoyPad and game device plugin - New Version 2.0
« on: April 23, 2016, 08:51:09 PM »
Yura_74:
Thanks.
You can inset the VB code:
There is nicer ways to do it, but this way your code are nearly unchanged.
Thanks.
You can inset the VB code:
Code: [Select]
END ' <--- Stops code execution here!
To stop executing the script at any place. Try this code:Code: [Select]
'========Go to Home======
If SL And SR And Button = PW then
Message ""Let's go to zero on the machine coordinates""
DoOEMButton (138)
End ' <--- Stops code execution here!
End If
'======Ref All step by step=====
If SR And Button = PW Then
Message "Ref All step by step"
DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
End ' <--- Stops code execution here!
End If
There is nicer ways to do it, but this way your code are nearly unchanged.