mIRC Home    About    Download    Register    News    Help

Print Thread
#25589 23/05/03 09:09 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i was wondering if anyone knows how to change the range of a seperate hsbar in a dialog to the length of a currently playing mp3
bcoz range 0 $!inmp3.length doesnt work frown
any help gr8ly appreciated smile


new username: tidy_trax
#25590 23/05/03 10:32 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
u can use /did -z DNAME ID
to update the horizontal bar of the listbox, if u specify the hsbar option

#25591 23/05/03 11:03 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
i know that doesn't help as the horisontal scrollbar is seperate,
it isnt on a listbox.
i want to use it like a trackbar


new username: tidy_trax
#25592 23/05/03 11:10 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
/did -z <name> <id> <min> <max>
for example:
/did -z mp3dialog 12 0 $inmp3.length


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#25593 23/05/03 11:14 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
did -z is only if the scrollbar is in a listbox, this 1 isnt connected to anything.


new username: tidy_trax
#25594 23/05/03 11:51 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Quote:
did -z is only if the scrollbar is in a listbox

No it isn't, I've used it before...

#25595 23/05/03 03:00 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
-z is for listbox scrollbar AND scroll, if u use it for scroll it will update the range of the scrollbar


#25596 23/05/03 04:06 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
o ok i was just going by what it said in mirc help blush
cheers you 2 smile


new username: tidy_trax
#25597 23/05/03 05:34 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
now 1 more question please smile
do you know how to get the range of the scrollbar to use in another command?
coz im also going to use it as a seek bar.
thanx a lot so far smile

Last edited by pheonix; 23/05/03 06:04 PM.

new username: tidy_trax
#25598 23/05/03 06:20 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
its ok now i got it grin
cheers smile
now can i ask 1 more question please blush
do you know how to get the range for a scrollbar?

Last edited by pheonix; 23/05/03 06:42 PM.

new username: tidy_trax
#25599 24/05/03 01:16 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
$did(name,id).lines will return the MAX part from the range
so if the range is from 10 to 50 it will return 50, if u want it return 40 in this case so i don't think it's possible

#25600 24/05/03 02:06 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
$did(name,id).sel

#25601 24/05/03 02:08 PM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
no, $did(name,id).sel will return the current position of the scrollbar, not the range

#25602 24/05/03 02:17 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Yep you're right it will, I misread the question, sorry. shocked

#25603 24/05/03 02:36 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
hmm my friend said its using very complicated gettoks frown
cheers anyway you 2


new username: tidy_trax
#25604 25/05/03 02:29 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I read this thread after I posted to that one, so check it out.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard