Page 1 of 1
Knight Rider Plugin
Posted: November 5th, 2017, 10:33 am
by skite2001
Does somebody have this plugin for download?
https://www.youtube.com/watch?v=T7w5rWaoEro
greetings
skitey
Re: Knight Rider Plugin
Posted: November 6th, 2017, 9:28 am
by dperrow
Wouldn't have thought it would be to hard to create one. Let's see if someone finds it though.
Re: Knight Rider Plugin
Posted: November 7th, 2017, 7:08 am
by hydrolisk1792
dperrow wrote:Wouldn't have thought it would be to hard to create one. Let's see if someone finds it though.
Can't this be done by just using a bar command and the scroll function? Maybe something as easy as that? Or have the bar read a bullshit script that just tells it to go from 10% thru 100% then back thru to 10% and repeat? Just throwing that out there, haven't tested the theory yet but I might because it is kinda cool
I did something "similar" using the Hold & Scroll dll to make a counting number 0 thru 9 in one digit so it looked like it was counting when really all it is doing is scrolling 0123456789 over and over again on one digit on the display.

Re: Knight Rider Plugin
Posted: November 8th, 2017, 7:40 am
by cranq
Try it and see how it works.
Only one function - param1 is a line length (min 4 max 40), param2 is fade pause (min 1, max 10). You need to play a little with refresh interval and DLL check interval to suit your needs (plugin refresh interval is set to 30ms, it is possible to change it in the ini file from plugins dir).
Have fun

Re: Knight Rider Plugin
Posted: November 8th, 2017, 9:54 pm
by skite2001
really nice work!
is there any other disadvantage if i change the "dll check interval" to 50ms instead of 250ms..or does it just need a bit more cpu power?
Re: Knight Rider Plugin
Posted: November 9th, 2017, 11:34 pm
by hydrolisk1792
skite2001 wrote:really nice work!
is there any other disadvantage if i change the "dll check interval" to 50ms instead of 250ms..or does it just need a bit more cpu power?
So this works? I was wondering if it did because I didn't get a chance to test out this gentleman's dll, but it seems really cool. I have some ideas of where I could use it at

Let me know?
Re: Knight Rider Plugin
Posted: November 10th, 2017, 4:12 am
by cranq
To be honest, I can't think of any other disadvantage except higher* cpu usage.
Your dll will be called when ever the screen that references your dll is displayed and as often as the "DLL check interval" on the Misc settings tab (or your dll's limit if it's higher, which defaults to 300ms). It's wise not to do any work that will take a long period of time because the whole of smartie will be blocked until the function returns. It's best to create a thread to do the real work, and the exported function simply copys out the cached result.
From here:
http://lcdsmartie.sourceforge.net/docs.html
*As for that higher cpu usage - I wouldn't care about it. On my pc, difference between 50ms and 250ms is marginal. Maybe on some very, very old hw it would have some impact... But, it is possible that other plugin is doing some heavy work and calling it more often can slow down your pc noticeably (hard to tell). You should check you process manager (built-in or not) and see how it looks. Personally I have "DLL check interval" and "Refresh interval" set to 45ms, because of winamp plugin (spectrum analyser) and it's below 1% of cpu usage.
Not sure if that answer help with anything
--------------
KnightRider v0.2 - (second function with different animation, more smooth fading, 4 parameters).
$dll(KnightRider,1,a

c:d,), where;
a = start position (min 1 = line beginning, max 20)
b = width (min 4, max 40)
c = fade pause (min 0 = no pause, max 10)
d = animation offset and width (min 0, max 20)
Example:
$dll(KnightRider,1,1:20:2:0,)
or for second function:
$dll(KnightRider,2,5:12:2:8,)
Note: Disable scroling line and watch for center text if you want to change start position.
Re: Knight Rider Plugin
Posted: November 10th, 2017, 8:36 pm
by skite2001
thx for your answer. it helped a lot

changed it down to 45ms. other plugins works even better now
and...you're my hero now:)
the new version is AWESOME!!! thx!!!
i got a feature request, if this could be done...
could it be possible in some way to activate the "knightrider-fade" on cpu or hdd activity like an LED on the computer case?
(working=fade, idle=off)
Re: Knight Rider Plugin
Posted: November 12th, 2017, 7:05 am
by cranq
You mean activate animation when eg: cpu is working and disable when idle?
Re: Knight Rider Plugin
Posted: November 12th, 2017, 1:32 pm
by skite2001
cranq wrote:You mean activate animation when eg: cpu is working and disable when idle?
correct
Re: Knight Rider Plugin
Posted: November 13th, 2017, 7:22 am
by cranq
I'm sorry but I don't have enought free time to add this. I can only put some conditional argument into param2 to control animation start/stop.
Something like this: $dll(KnightRider,2,2:6:2:8,a:b) - a = start point, b = condition
$dll(KnightRider,2,2:6:2:8,5:$CPUUsage%) - in this example, animation will be visible only if CPU usage is equal or above 5. You can use here other functions from Smartie (network stats, mem usage and so on) or different plugins (SB, AIDA or WMI).
Note: It is possible to change delimiter from ini (delete this file or add "delimiter" under "options").
Re: Knight Rider Plugin
Posted: November 13th, 2017, 10:03 pm
by skite2001
very nice! thx for this update
