Page 1 of 1
'Animating' single charactors
Posted: March 10th, 2005, 11:07 pm
by fishthecat
Can someone make a plugin that makes a single charactor replace another? If so, we can animate stuff on the LCD. To prove the concept, I'm missusing the holdnscroll.dll to make a winking smilie.
Try it.
Code: Select all
$Right($dll(holdnscroll.dll,1, ,1/:::;:::)),$3%)
If someone could make something similar that could take a string of charactors, that would be great. My demo works, but when holdnscroll gets to the end of the string, It displays one blank 'frame'. If the $right wasn't in the code above, the bracket would jump left one space when the colons run out, then back again when the string loops back to the start.
Did that all make sense?
Could it also work with custom charactors too? eg, using these would look a bit like a CD was spinning.
Code: Select all
$CustomChar(1,0,14,19,21,25,14,0,0)$CustomChar(2,0,14,17,31,17,14,0,0)$CustomChar(3,0,14,25,21,19,14,0,0)$CustomChar(4,0,14,21,21,21,14,0,0)$Chr(176)$Chr(158)$Chr(131)$Chr(132)
Posted: March 11th, 2005, 5:43 pm
by limbo
I can?t say for sure right now cause I?m on vacation....
I will give it a try in a end of the month
I will post you a PM for more info or when something is ready for use...
Posted: March 11th, 2005, 10:13 pm
by _X7JAY7X_
I am not quite sure what you mean. You can easily make a program to animate custom characters, but they are defined in the plugin.
Do you want to be able to define whats animated outside of the plugin?
Posted: March 11th, 2005, 10:25 pm
by fishthecat
_X7JAY7X_ wrote:I am not quite sure what you mean. You can easily make a program to animate custom characters, but they are defined in the plugin.
Do you want to be able to define whats animated outside of the plugin?
That's the problem, I don't know how to make dlls.
What I'm thinking of is like an animated gif. A string of letters/numbers/customchars, that look like they animate because one replaces another. Just like the string of images that make up an animated gif.
So if I were to pass "12345" into the plugin, I'd want to see a 1, then it replaced a split second later with a 2, then a 3.... etc. Then for it to either loop to 1 when it reaches 5, or stop.
Did my example in the top post work for you? did it look like the smilie was winking?
Posted: March 11th, 2005, 10:51 pm
by _X7JAY7X_
I have done animation with plugins before, but not with external input. It would have to be something like:
$dll(Animation,1,I#F#R)
Where Animation is the name of the plugin and I#F#R is whats animated. You would need something to break up the string, in my example the # sign.
I can work on this soon. Is there somethin you want right away, something more hardcoded can be done in a few minutes.
Posted: March 11th, 2005, 10:53 pm
by fishthecat
_X7JAY7X_ wrote:I have done animation with plugins before, but not with external input. It would have to be something like:
$dll(Animation,1,I#F#R)
Where Animation is the name of the plugin and I#F#R is whats animated. You would need something to break up the string, in my example the # sign.
I can work on this soon. Is there somethin you want right away, something more hardcoded can be done in a few minutes.
That's the ticket.

There's no rush, I just thought it would be a good idea for a plugin.
Posted: March 11th, 2005, 11:31 pm
by _X7JAY7X_
I just did a test .dll using your cd custom chars from above
here is how to use it:
$dll(ANIMATE,2,1,1)
here is the link
http://www.geocities.com/jjacobs20/Animate.zip
Posted: March 24th, 2005, 5:42 pm
by AllenConquest
Could you post the source code somewhere. I've love to see how this is done. Maybe I can use something similar in my plugin.
Cheers,
Allen
Posted: March 24th, 2005, 8:53 pm
by _X7JAY7X_
I will post it when I get home. That sample code is to animate a fixed set of characters(the spinning cd from above). I havent had the time to make a external input character plugin yet.
Posted: March 24th, 2005, 11:52 pm
by fishthecat
Waah, I can't get it to work.
I've copied the dll into my plugins folder, but I get an error when I hit apply: "This Application has failed to start because MSVCP60.dll was not found..."
Then "Load of Plugin failed: Load Library failed with #126: the specified module could not be found."
Other dlls work on my system, like bignum and holdnscroll... Any ideas?
Posted: March 25th, 2005, 3:58 am
by _X7JAY7X_
I didnt think you needed any library .dll but I guess you do. That .dll is used in c++. You should be able to search on google and download the .dll from dll-files.com or something like that and place it in the SYSTEM32 directory.
Other plugins are written in C++ and they dont need any extra library files, I will have to look into this, but for now downloading the .dll should work.
Posted: March 25th, 2005, 12:46 pm
by fishthecat
I already have th dll in my system32 folder. I did download another version, but that errors just the same.
I remember having to install .net framework to get holdnscroll working, is there something I can install for this one?
I'm running XPpro btw.
Posted: March 25th, 2005, 12:49 pm
by limbo
Did you tried to install any C++ runtimes package?
try this link for download
http://www.emailcomponent.com/download/ChilkatLib2.zip
Posted: March 25th, 2005, 11:24 pm
by _X7JAY7X_
Thanks limbo.
That was what I was looking for but couldnt find it.
Sorry about this...
Posted: March 25th, 2005, 11:36 pm
by fishthecat
I've d/l the zip file above, but there's no dlls or setup progs in it. What do i do now?
I HATE asking dumb questions like this. Sorry folks.
Posted: March 26th, 2005, 1:17 am
by _X7JAY7X_
Fish, are you looking to be able to input 8 characters (amount of custom characters) or more or less?
Posted: March 26th, 2005, 1:33 am
by fishthecat
_X7JAY7X_ wrote:Fish, are you looking to be able to input 8 characters (amount of custom characters) or more or less?
well, I suppose it'd be best if one could use upto 8 custom ones and all the normal characters too. Then we can have all sorts of fun.

Posted: March 26th, 2005, 7:18 am
by _X7JAY7X_
I will see what I can do. The first .dll to test will probably only be 8 chars. You should be able to use any characters including custom, but a limited amount of 8.
Did you get the c++ runtimes?
Posted: March 30th, 2005, 6:10 am
by _X7JAY7X_
The plugin is done you can use any characters up to 8.
For example, here is how to use 3 custom chars:
$dll(ANIMATE,1,$CustomChar(1, 1, 1, 1, 31, 31, 1, 1, 1)$Chr(176)#$CustomChar(2, 1, 1, 31, 31, 31, 31, 1, 1)$Chr(158)#$CustomChar(3, 31, 31, 31, 31, 31, 31, 31, 31)$Chr(131)#,1)
This plugin has little testing, so any feedback would be good.
You can download it at:
http://www.geocities.com/jjacobs20/Animate.zip