Button (Macro) - Call PDF

Here is where you can drop off Examples of WORKING macros,plugins,Gcode programs , macro Wizards etc.
Please give a brief description of what it is and how it works.

Button (Macro) - Call PDF

Postby Robertspark » Thu Aug 03, 2017 10:31 am

I use the user manual + macro manual a lot, I was wondering if it was possible to call a PDF from a screenset button

It seems it is (although the uccnc reset does need to be off!)

Basically, edit the screen, add a button to say over the CNCDrive Logo in the top RHS of the screenset.

Set the button to call the following macro (i.e. save it as M20000.txt to M21999.txt in the profile folder)

Add the attached image file to the Flashscreen >> BMP >> defaultscreenset folder (or whatever other you are running)

The Image is a transparent image.... hence the CNCDrive Logo will still be visible below it (or wherever else you want to plok it)

Add the image to the screenset.

Reference the screenset button object to the defined image.

Save the screenset, Close the screenset editor, and hopefully by clicking in the area of the CNCdrive logo, the user manual will now load in your default PDF viewer....... you may change this to other file types too for other files / sources of reference [start new sheetcam or cad application]?

Code: Select all
string usermanual = @"\Documentation\UCCNC_usersmanual.pdf";
System.Diagnostics.Process.Start(Application.StartupPath + usermanual);
(362 Bytes) Downloaded 68 times
(133 Bytes) Downloaded 58 times
TransparentButton.png (188 Bytes) Viewed 884 times

Einstein ― “If you can't explain it to a six year old, you don't understand it yourself”
UC400eth, UC300eth, UCCNC v1.2046, Neuron Lite.
UCCNC Macro Manual
Posts: 620
Joined: Sat Sep 03, 2016 4:27 pm
Location: Nr Liverpool, England


Who is online

Users browsing this forum: No registered users and 1 guest