mIRC Home    About    Download    Register    News    Help

Print Thread
#82463 09/05/04 06:25 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
//set %mp3l $findfile(%mp3,*.mp3,0,did -a Mp3 1 $remove($nopath($1-),.mp3))
%mp3 = Mp3 directory... and that's about it...
For some reason, It loads everything by at the end there's this little space in the listbox... =/
Anyone know why its doing this?

#82464 09/05/04 07:57 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199

If the image isn't working just right click -> show pic.
if that still dont work, http://www.freewebs.com/em1n3m/mp3ss.gif
[[Btw, It's the space BELOW Zay - Renegades]]

Last edited by Kriminal; 09/05/04 07:59 PM.
#82465 09/05/04 08:06 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
try did -d mp3 1 $did(mp3,1).lines after the $findfile line.

#82466 09/05/04 08:13 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Huh? :tongue:
<- Lost

#82467 09/05/04 08:32 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
//set %mp3l $findfile(%mp3,*.mp3,0,did -a Mp3 1 $remove($nopath($1-),.mp3))
//did -d mp3 1 $did(mp3,1).lines

#82468 09/05/04 08:41 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Hm, With using that code, It just took off the LAST line of the Mp3s in the list (Which was Zay - Renegades) - So anyone know the problem is? Something with the listbox...? ;/

#82469 09/05/04 08:44 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
If that didn't work, then it's not even classed as a line in the listbox, can you actually select the blank line?
If not, then it's just the vertical scrollbar leaving a bit of a gap at the bottom.

#82470 09/05/04 08:59 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
Do you design your dialogs with Dialog Studio?

#82471 09/05/04 09:01 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Yep Online. wink
BTW: Anyone know how to tell if a Mp3 is "paused"?

Last edited by Kriminal; 09/05/04 09:01 PM.
#82472 09/05/04 09:06 PM
Joined: Dec 2002
Posts: 1,893
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,893
After you create your listbox, go to the Other Properties tab and uncheck "Force Size". This will solve the extra spacing problem.

Quote:
Anyone know how to tell if a Mp3 is "paused"?

See Nimue's $paused.

#82473 09/05/04 09:21 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
alias paused { if !$insong { return }
var %p = $insong.pos,%a = $ticks,%b = %a + 1
while %a < %b { %a = $ticks }
if $insong.pos == %p { return 1 }
}
How does that work...? :0
I wanted something similar to:
$iif($insong.paused == $true,splay resume,splay pause)
wink
-Thanks for the force size thing trying it now.

#82474 09/05/04 09:23 PM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
The paused alias sets %p to the current position in the song, %a to $ticks, and sets %b to $ticks plus 1, then it waits one millisecond and checks if the position is the same as %p, if it is the same then the song is paused.

#82475 09/05/04 09:29 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Yeah, I know, but how would I use it in an if statement. smile

#82476 09/05/04 09:29 PM
I
Iori
Iori
I
  • splay $iif($paused,resume,pause)
or
  • if $paused { splay resume }
    else splay pause

#82477 09/05/04 09:39 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Thanks buddeh grin


Link Copied to Clipboard