Recently Loaded Files.

This is where you talk about Plugins. How they are made and how they work, show examples.

Recently Loaded Files.

Postby Dan911 » Sun Jun 10, 2018 8:44 pm

I read this in the Feature Request section and thought it was a good idea and I could find use, had some play time today and was simple to write. This plugin will save the last 10 Gcode files loaded in UCCNC removing the oldest when replacing with new. You can click on file to quickly load.

Recently Loaded.JPG



1. Put dll file in your UCCNC Plugin folder and check Call Startup and Enable.

2.Create a button in screen edit and give it button# 6222, or create a hotkey and use 6222 for function code, or put macro I included in zip file
and add to the Multi Macro button I previously uploaded.

Dan

Recently Loaded.zip
(7.34 KiB) Downloaded 43 times
Dan911
 
Posts: 425
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Recently Loaded Files.

Postby Vmax549 » Sun Jun 10, 2018 9:45 pm

Now that one is a HANDY one . :D

(;-) P
Vmax549
 
Posts: 1312
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Recently Loaded Files.

Postby beefy » Sun Jun 10, 2018 9:57 pm

Cheers Dan,

that's a feature I use in any program that has it, very useful.

Keith.
beefy
 
Posts: 197
Joined: Mon Sep 05, 2016 10:34 am

Re: Recently Loaded Files.

Postby Vmax549 » Mon Jun 11, 2018 12:02 am

One thing I noticed is that the LIST is not persistant. It only shows files that you load during that session.

(;-) TP
Vmax549
 
Posts: 1312
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Recently Loaded Files.

Postby Dan911 » Mon Jun 11, 2018 1:10 am

Vmax549 wrote:One thing I noticed is that the LIST is not persistant. It only shows files that you load during that session.

(;-) TP


You need to check "Call startup" along with "Enable" in Configure Plugins. The Call startup event is where it loads saved files from the pro file.
I did consider loading files in code to avoid users forgetting to check and having this problem but old habits are hard to break. Besides it seems to me so much cleaner/safer to have settings loaded before plugin begins. I also use the shut down event to save.

Dan
Dan911
 
Posts: 425
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Recently Loaded Files.

Postby Vmax549 » Mon Jun 11, 2018 1:30 am

OK I checked Call on Startup . It does write teh Filenames to teh PRO file. BUT it does not load teh filenames to teh list on startup.

(;-) TP
Vmax549
 
Posts: 1312
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Recently Loaded Files.

Postby Dan911 » Mon Jun 11, 2018 1:39 am

What UCCNC version you using? All my testing was on 47 without issue.
Dan911
 
Posts: 425
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Re: Recently Loaded Files.

Postby Vmax549 » Mon Jun 11, 2018 2:03 am

Presently running 2104

(;-) TP
Vmax549
 
Posts: 1312
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Recently Loaded Files.

Postby Vmax549 » Mon Jun 11, 2018 2:20 am

Currently 2104

Update, IF I load the default profile it works.

If I load another profile it does NOT work. It will write the pro file. But does not load the list.

(;-) TP
Vmax549
 
Posts: 1312
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Recently Loaded Files.

Postby Dan911 » Mon Jun 11, 2018 3:19 am

Vmax549 wrote:Currently 2104

Update, IF I load the default profile it works.

If I load another profile it does NOT work. It will write the pro file. But does not load the list.

(;-) TP


Hey Terry, what's happening is the plugin is loading saved files from profile used at startup and saving files to profile used when closing. I see it's probably best to save files at time of loading in UCCNC to
profile used instead of at closing for the uses who switch between profiles. The user also has to remember to go to configure plugin and check enable and Startup for each profile used.

Will take a better look tomorrow, thanks for the update.

Dan
Dan911
 
Posts: 425
Joined: Mon Oct 31, 2016 1:22 am
Location: USA

Next

Return to Plugins

Who is online

Users browsing this forum: No registered users and 4 guests