1
VB and the development of wizards / Re: passing variables from gcode to macro
« on: March 30, 2024, 12:34:52 PM »
thanks!!!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
I can run MachRemote now, but I don't know which APIs or commands I can use ?? From source code of MachRemote, I can find
Rem VBScript To capture image To file from camera
Rem date = Date()
x_current = "x" + CStr(GetUserDRO(0))
y_current = "y" + CStr(GetUserDRO(1))
z_current = "z" + CStr(GetUserDRO(2))
date_now = Date()
time_now = Time(Now)
date_string = CStr(Year(date_now)) + CStr(Month(date_now)) + CStr(Day(date_now))
time_string = CStr(Hour(time_now )) + "-" + CStr(Minute(time_now )) + "-" + CStr(Second(time_now ))
output_dir = "c:\cnc_cam\"
file_name = x_current + "_" + y_current + "_" + z_current + ".bmp"
output_file = "CommandCam.bat"
Open output_file For Output As #1
Print #1, "cd " + output_dir
Print #1, "CommandCam /quiet /delay 100 /filename " + date_string + "_" + time_string + "_" + file_name
Close #1
Shell ( "CommandCam.bat")