|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 733 |
is there a reason gif doesnt work in dialogs? im trying to add an animation but it cant find the gif file (its there) or is the gif not loading a bug?
|
|
|
|
Joined: Dec 2002
Posts: 3,015
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,015 |
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 733 |
ok, thats why it dont work, how do i get it to work?
|
|
|
|
Joined: Nov 2003
Posts: 228
Fjord artisan
|
Fjord artisan
Joined: Nov 2003
Posts: 228 |
MDX allows you to load soundless animation files to dialogs, I'm not sure if it supports gifs, but you can convert it to an avi and use that.
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 733 |
awright:) thanks, i was already using mdx on my dialog, how can i put it in avi?
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 733 |
i tried 3 programs to convert they all didnt work.
|
|
|
|
Joined: Dec 2002
Posts: 292
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 292 |
Hi MTec89 Have you tried AVI-GIF ? The address is http://www.ucansoft.comSorry this program is ShareWare, but is worth the money if you want to convert a lot of gif's - cant remember if it's crippled in anyway, ie watermark in converted gif's, or if it's a 30 day trial, best to try it and see what results you get. And will allow you to convert AVI to GIF and GIF to AVI, i use it, to convert some gif's to avi's for use in a few of my scripts. As for getting an avi to play in a dialog, Online helped me with a similar question ages ago. (just searched for it) https://forums.mirc.com/showthreaded.php?...o=&vc=1 Here's the code he used
alias mdx_fullpath { return $+(",C:\Program Files\MDXStudio\MDX.DLL,") } [color:green];(or wherever you keep the mdx.dll file)[/color]
alias mdx { dll $mdx_fullpath $1- }
alias mdxinit {
dll $mdx_fullpath SetMircVersion $version
dll $mdx_fullpath MarkDialog $dname
}
dialog anim1 {
size -1 -1 313 203
title "Dialog"
button "positioner",1001,0 0 0 0
button "OK",1,3 5 60 30, ok
button "",2,4 34 300 160
text "A bunch of text",3,63 6 173 17
}
on *:dialog:anim1:init:0:{
mdxinit
mdx SetControlMDX $dname 2 animation > C:\Program Files\MDXStudio\ctl_gen.mdx [color:green];(or wherever you keep the ctl_gen.mdx file)[/color]
did -a anim1 2 open $scriptdirtest.avi
did -a anim1 2 play
}
I have my MDX.DLL kept in my script folder, but in the case of the example above, for faster loading and easier access when creating scripts that use MDX, i also keep it in the MDXStudio folder too (thats why in my example it's where it is) MDXStudio can be found at http://www.scripting.gr/~rg/index.php if you dont already have it. Hope this helps ShadowDemon
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 733 |
thank you very much for all of the links and code.. but yet another gif/avi program fails. i dont know what to do.
|
|
|
|
CtrlAltDel
|
CtrlAltDel
|
try the trial version of gif animator here I know the FULL version will make avi's, and the info re: the trial version don't say it's crippleware (just have to deal with banner ads)
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 733 |
finally one worked. thanks:))) but im having problems with alignment
dialog anim1 {
title "New Project"
size -1 -1 468 60
option pixels
button ".", 1, 0 0 468 60
}
on *:dialog:anim1:init:0:{
dll $udll SetMircVersion $version
dll $udll MarkDialog $dname
dll $udll MarkDialog $dname $dialog($dname).hwnd
dll $udll SetControlMDX $dname 1 animation > $scriptdirctl_gen.mdx
did -a anim1 1 open $mircdirimages\bannr.avi
did -a anim1 1 play
}
this is what it supposed to look like and what it actually looks like
Last edited by MTec89; 02/12/03 08:18 PM.
|
|
|
|
Joined: Dec 2002
Posts: 292
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 292 |
Yeah i had the same problem when i used MDX to remove the title bar, i had to reallign all my stuff in the dialog, i loaded it up in Dialog Studio it looked weird But in the script it looked perfect.  Glad to here you got some sort of code working  As for the Program, are the anim gif's large, ie in size, eg, 450k+ ? Maybe thats what AVI - GIF cripples ? (it doesnt like gifs over a certain size) Sorry to hear that it doesnt work out for you.  ShadowDemon
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 733 |
ill try that.. sizes are for gif 28.3KB animated... and avi 1.56MB didnt work.. take a look at this.. this was taken from a web cam on the top of my school..so i edited it a tiny bit... im proud of my m4d sk1llz:p http://mtec89.com/bus.png
Last edited by MTec89; 03/12/03 12:00 AM.
|
|
|
|
Joined: Feb 2003
Posts: 3,412
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 3,412 |
Stop this lame [censored] with huge images.. why do you have to post this crap in a mirc forum??
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 733 |
i noticed it and i edited it before u said it..im soz
|
|
|
|
Joined: Dec 2002
Posts: 292
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 292 |
Hmm, like i said not sure if the program is crippeld in anyway and only allows you to convert gif's of a certain size, but yeah i can understand the AVI file size, i have an 11MB AVI (Uncompressed) in one of my dialogs, yeah it's pretty long, but thats cos of the script i use it in, may as well brighten up the old dialog while it does it's job. The smallest AVI i have is about 10 secs long and is only 89 kb in size These were both converted from GIF to AVI using AVI - GIF (yeah confusing) I registered my copy months ago, on an earlier Version, so i cant remember many of teh details about if it restricts what a user can do or not. Is that a custom Switch Bar you have there ? If it is, then i'm afraid i cant help you much after that, cos i dont use one in my script, and maybe thats why the alignment is all wrong, and all that using MDX and whatever other DLL's you are using to "dock" it. As for the second pic, care to explain what it is ?  ShadowDemon
|
|
|
|
Joined: Jul 2003
Posts: 733
Hoopy frood
|
OP
Hoopy frood
Joined: Jul 2003
Posts: 733 |
well the only problem i have had converting is that the bottom 1/3rd of the banner looks like a tiger ripped it to shreads.. but i fianally got it with that last program. i use mdx and rebar.dll (to dock). yeah its a custom switchbar..
the image is a yellow twinkie(schoolbus) infront of my school and i just turned everything black and added some lightning:)
well thanks for your help, ill just use html.dll this avi stuff isnt worth it. plus the image is discolored.. green instead of tan skin(eyes/face)
Last edited by MTec89; 03/12/03 12:23 AM.
|
|
|
|
Joined: Dec 2002
Posts: 292
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 292 |
i found that out too, disfiguring some of the avi's when they got converted, maybe it's the codecs i used i have since installed some updated avi codecs (i'll blame microsoft) and messed around with options and even changing the colour pallete of the gif, eventually i got something that resembled an AVI for use with a dialog.
I'm having probs with docking with rebar.dll (even after mailing the author) but i read somewhere that a new version of ktools.dll is being released this December, i hope it's compatible with V6.12 of mIRC.
Ok cool, a schoolbus, thanks for that.
ShadowDemon
|
|
|
|
CtrlAltDel
|
CtrlAltDel
|
why do you have to post this crap in a mirc forum um .. I believe this particular PART of the mirc forum is titled as follows "General Discussion Use this forum to talk about IRC, mIRC, and other general topics." Sounds kinda general to me :tongue:
|
|
|
|
|