mIRC Home    About    Download    Register    News    Help

Print Thread
#62426 30/11/03 09:01 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
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?

#62427 30/11/03 09:09 PM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
Read this.

#62428 30/11/03 09:29 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
ok, thats why it dont work, how do i get it to work?

#62429 01/12/03 07:12 PM
Joined: Nov 2003
Posts: 228
S
Fjord artisan
Offline
Fjord artisan
S
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.

#62430 01/12/03 07:29 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
awright:) thanks, i was already using mdx on my dialog, how can i put it in avi?

#62431 02/12/03 04:31 AM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
i tried 3 programs to convert they all didnt work.

#62432 02/12/03 11:28 AM
Joined: Dec 2002
Posts: 292
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 292
Hi MTec89

Have you tried AVI-GIF ?

The address is http://www.ucansoft.com

Sorry 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
Code:
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

#62433 02/12/03 12:45 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
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.

#62434 02/12/03 04:46 PM
C
CtrlAltDel
CtrlAltDel
C
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)

#62435 02/12/03 07:55 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
finally one worked. thanks:)))

but im having problems with alignment
Code:
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.
#62436 02/12/03 11:17 PM
Joined: Dec 2002
Posts: 292
S
Fjord artisan
Offline
Fjord artisan
S
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. crazy

Glad to here you got some sort of code working grin

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. frown

ShadowDemon

#62437 02/12/03 11:45 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
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.
#62438 02/12/03 11:54 PM
Joined: Feb 2003
Posts: 3,412
S
Hoopy frood
Offline
Hoopy frood
S
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??

#62439 02/12/03 11:55 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
i noticed it and i edited it before u said it..im soz

#62440 03/12/03 12:09 AM
Joined: Dec 2002
Posts: 292
S
Fjord artisan
Offline
Fjord artisan
S
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 ? laugh

ShadowDemon

#62441 03/12/03 12:14 AM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
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.
#62442 03/12/03 12:54 AM
Joined: Dec 2002
Posts: 292
S
Fjord artisan
Offline
Fjord artisan
S
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

#62443 03/12/03 02:52 AM
C
CtrlAltDel
CtrlAltDel
C
Quote:
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:


Link Copied to Clipboard