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 431 times
(133 Bytes) Downloaded 496 times
TransparentButton.png (188 Bytes) Viewed 3790 times
Posts: 1770
Joined: Sat Sep 03, 2016 4:27 pm


Who is online

Users browsing this forum: No registered users and 0 guests