﻿#VB
'rem Modified may/19/2022 by CNC4PC
'Aut. Setpoint Button

 if AS3.Getbuttonstate(21001) = false then
   AS3.Switchbutton(true, 21001)
     exec.Writekey("CNC4PC_THC-3", "Auto_Set_Point_Button", "True")
    
 else
   AS3.Switchbutton(false, 21001)
    exec.Writekey("CNC4PC_THC-3", "Auto_Set_Point_Button", "False")
     
end if
