Skip to content
General IRCX

MP3 Player

A TG007 community discussion started by Rhys.

Discussion 17 posts
Page 1 of 1
Open
Topic #1974 · 17 published posts · 2,905 views

i have a mp3 player which i have to open everytime a song finishes. i want to have it so it is docked under the channels at the top. a bar for my mp3 player. does anyone know how to do it?

Ultradock.dll or ReBar.dll I think. There both used for docking.

i know that but how do i do it?

There are manuals in them as such

 

dll rebar.dll dothis,t2, dothis, dockhere, rgb blahblahblah

 

Read the manual's that come with em' its not hard.

i dont have a clue what you are on about

Then don't do dll's if you can't figure it out, just look at the code, and delete the part that makes it closes it after the song. Either that your youll just have to click the button again.

on *:dialog:mymp3:init:*:{
 dll dll/rebar.dll Dock $dialog(mymp3).hwnd > Top/Bottom/Left/Right
}

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

On *:Dialog:mp3player:init:0:{
 dll $RebaR Dock $dialog($dname).hwnd > top
 dll $udll SetMircVersion $version
 dll $udll MarkDialog $dname
 dll $udll SetMircVersion $version
 dll $udll MarkDialog $dname
 dll $udll SetColor $dname
 dll $udll SetFont $dname
 dll $udll SetBorderStyle 1 
}

Edited Nov 23, 2004 1:32 AM by DigitalX
Then don't do dll's if you can't figure it out, just look at the code, and delete the part that makes it closes it after the song.

while ( (inbyte = strread->ReadByte()) != -1) {
bytearray = new Byte[inbyte];
strread->Read(bytearray, 0, inbyte);
Console::WriteLine("Read an array:");
for (int i=0; i<inbyte; i++) {
 Console::Writeline(bytearray[i]);
}
}
strread->Close()]
}

Don't do C++ if you can't figure it out. Helpful, aint it? smile.gif

 

Don't do C++ if you can't figure it out.

 

And whom would you be talking to? smile.gif

Isn't this forum here to help those who want to learn? mIRC has a help file for those who do scripting with mIRC, but when I first started out I didn't know a single thing about mIRC. So, I had no clue on how to understand the help file, and everytime I asked for help I would run into people with attitudes just like what I see here. So, I had to learn on my own. I donwloaded some scripts, and played around with codes so I could see what each code did, and such. Now, I've been scripting for a little over 5 years, now. I'm still not the best. Not even close, but I think I'm pretty good, now, and I'm still learning.

 

If we arenot here to help those who want to learn, then what are we doing here in the first place. If we have knowledge, then isn't it up to us to share that knowledge? If you don't, then what good is it?

 

Sorry about the rants, lol. Anyway, back to the subject.

If you use rebar.dll the code is something like this.

 

dll dlls\rebar.dll Dock $dialog($dname).hwnd > top

 

This will dock your dialog to the top of the chat window. smile.gif

Well, I agree with you, although there are those people who start mIRC out thinking that they can do the advanced things but really when they ask about it they don't know a clue of what the other persons talking about, but still persist on learning advanced before beginning. For beginning I would suggest playing around with the remotes and just learning from other scripts. From the looks of things Rhys is using someone elses script, and there is a fact pointing to they don't know how to edit remotes to a intermediate level of scripting, thus rendering dll docking a bit advanced. And im not saying my theory is true, im just saying its my theory.

 

lmao

i don't use downloaded scripts thank you very much glitch. i only make and release them. this is for my own personal script. and im not beginner, im more intermediate and at the stage of learning dialogs.

I definatly would call intermediate starting to learn dialogs. But, I never said that it wasn't your script, I just presumed it wasn't hence you didn't know how to use a dll, most people ask 'how do I do this' when they don't know what an alias is. My appoligies if I said something to offend you.

i just don't understand dll's. ive never used them before. digitalx the code you gave me is ok, but the size is to big. the dock window is to high. and my channels bar covers my toolbar. how can i fix this? also my dialog isnt working. i have only resized it and now it doesent work properly.

Edited Nov 24, 2004 7:53 PM by xRhysx

i need help with my mp3 player. when you open it, it tries to do a command. the command is always a number and it changes sometimes. it fills my status window up with number unknown command. i know where the code it thats doing it, but i don't know whats wrong with it, can anyone help me?

 

on *:dialog:mp3:init:0:{
 if (%runonstartup == on) {
   set %mp3.dir $sdir(MP3 Files Folder)
   $findfile(%mp3.dir,*.mp3,0,did -a mp3 1 $nopath($1-))
   did -c mp3 18
 }
 elseif (%runonstartup == off) {
   $findfile(%mp3.dir,*.mp3,0,did -a mp3 1 $nopath($1-))
   did -u mp3 18
 }
}