Page 1 of 1
dll refresh interval
Posted: March 21st, 2005, 3:40 pm
by rektifier
hi everybody! how can I get lcd smartie refresh my dll not as often as it does now? i want it to refresh every 5 min or so.
/mike
Posted: March 21st, 2005, 8:23 pm
by limbo
U can use the
Getrefreshinterval function
See
http://lcdsmartie.sourceforge.net/plugins.html...
Also read the "
Warning" at the end of the page
Re: dll refresh interval
Posted: May 26th, 2011, 2:51 pm
by hurley
I know this is an old thread but..
I'm writing a plugin for which I'd like my users to be able to set the dll refresh interval in a parameter.
I've tried to pass an integer from function1 to GetMinRefreshInterval() method, but it seams to not work.
Is it possible to do this or does LCDsmartie process GetMinRefreshInterval() before the function method?
Thanks for any help. hurley.
Re: dll refresh interval
Posted: May 27th, 2011, 10:51 am
by limbo
I think that it is not supported.
I tried in the past a couple of methods to pass a different time using the refresh interval but the program code seems to check this value only once on the dll load...
Maybe it can be altered a bit in a future version of the program but we have to check the stability as well.

Re: dll refresh interval
Posted: May 27th, 2011, 10:51 am
by limbo
I think that it is not supported.
I tried in the past a couple of methods to pass a different time using the refresh interval but the program code seems to check this value only once on the dll load...
Maybe it can be altered a bit in a future version of the program but we have to check the stability as well.

Re: dll refresh interval
Posted: May 29th, 2011, 12:12 pm
by hurley
Yes it looks that way. I tried a couple of tricks too without success.
No worries, thanks for your help limbo.
Re: dll refresh interval
Posted: May 29th, 2011, 6:33 pm
by dperrow
would reading the value from an ini file from the getrefreshinterval function be good enough?
you could possibly check for a change in the ini file value from each dll function call and restart lcdsmartie if it changes?
Re: dll refresh interval
Posted: May 30th, 2011, 8:40 pm
by hurley
hmm, good thinking dperrow.
I've been thinking about using an ini for user configurable fonts but it didn't occur to me to use one for refresh.
Not as slick as changing a parameter, but an ini should work for refresh interval and at least then users could configure to suit their requirements.
I might try this after I'm done with 0.1.2 of CoreTemp plugin since 0.1.3 will need an ini too.
Cheers

Re: dll refresh interval
Posted: June 1st, 2011, 11:09 am
by hurley
Well it worked perfectly.
Actually the GetMinRefreshInterval() method makes a great entry point for plugin specific configuration, since it's only called once & before any function() methods.
Looks like we might have turned an issue into a bonus here.
Thanks for the idea dperrow!!
Re: dll refresh interval
Posted: June 1st, 2011, 6:46 pm
by dperrow
Actually,
there's a SmartieInit() function for this purpose. That's where I read in my ini file for the MCE_dll. I then stick the values in some global variables but hey, if it works don't fix it!
Glad to be of help,
Dave