|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
I need some help making my trackbar move forward and be able to go back... alias mdx_fullpath { return mdx.dl }
alias mdx { dll $mdx_fullpath $1- }
alias mdxinit { dll $mdx_fullpath SetMircVersion $version dll $mdx_fullpath MarkDialog $dname }
dialog Mdx_dialog { size -1 -1 292 223 title "Dialog" list 1,20 20 168 30,size } on *:dialog:Mdx_dialog:init:*:{ mdxinit mdx SetControlMDX $dname 1 TrackBar autoticks > bars.mdx mdx SetBorderStyle $dname 1 windowedge did -i $dname 1 1 params 0 0 10 * * * * 18 did -i $dname 1 1 tickfreq 1 } ... So How can I get this to move? =(
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 397 |
try this idk if it will work im at school ;/ but make a timer and update the dialog pos ;/
dialog Mdx_dialog {
size -1 -1 292 223
title "Dialog"
list 1,20 20 168 30,size
}
on *:dialog:Mdx_dialog:*:*:{
if ($devent == init) {
mdxinit
mdx SetControlMDX $dname 1 TrackBar autoticks > bars.mdx
mdx SetBorderStyle $dname 1 windowedge
did -i $dname 1 1 params 0 0 10 * * * * 18
did -i $dname 1 1 tickfreq 1
/timerupit 100 1 ./updateit
}
if ($devent == close) {
if (%foodit) {
unset %foodit
./timerupit off
halt
}
}
}
alias updateit {
if (!%foodit) { set %foodit 0 }
if (%foodit <= 100) {
unset %foodit
./timerupit off
halt
}
/did -i Mdx_dialog 1 1 params %foodit 0 10 * * * * 18
inc %foodit 1
}
try that idk if it will work im at school and pretty tierd ;/ i will figur out the go back part later i know how to use a tickbar i have used 1 before just its been a while ;/
Last edited by ATMA; 15/04/04 12:27 PM.
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
Aight, Thanks ATMA. I'll await your reply... and I got a timer that updates the POS. of the song...
Last edited by Kriminal; 15/04/04 11:14 PM.
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Dec 2002
Posts: 397
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 397 |
here is a bit better code ;/
dialog Mdx_dialog {
size -1 -1 292 223
title "Dialog"
list 1,20 20 168 30,size
}
on *:dialog:Mdx_dialog:*:*:{
if ($devent == init) {
mdxinit
mdx SetControlMDX $dname 1 TrackBar autoticks > bars.mdx
mdx SetBorderStyle $dname 1 windowedge
did -i $dname 1 1 params 0 0 $sound(%songname).length * * * * 18
did -i $dname 1 1 tickfreq 1
/updateit
}
if ($devent == close) {
./timerSongUpDate off
}
}
alias updateit {
did -i Mdx_dialog 1 1 params $sound(%songname).pos 0 $sound(%songname).length * * * * 18
./timerSongUpDate 1 1 ./updateit
}
im still trying to figur out how to do the draging it and having it play ;/
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
im still trying to figur out how to do the draging it and having it play ;/ if $devent == sclick && $did == 1 {
.timerSongUpDate -p
if $gettok($did(1,1),9,32) == end {
splay seek $gettok($did(1,1),1,32)
.timerSongUpDate -r
}
}
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
dialog Mdx_dialog { size -1 -1 292 223 title "Dialog" list 1,20 20 168 30,size } on *:dialog:Mdx_dialog:*:*:{ if ($devent == init) { mdx SetMircVersion $version mdx MarkDialog $dname mdx SetControlMDX $dname 1 TrackBar autoticks > bars.mdx mdx SetBorderStyle $dname 1 windowedge did -i $dname 1 1 params 0 0 $sound($insong.fname).length * * * * 18 did -i $dname 1 1 tickfreq 1 /updateit } if ($devent == close) { .timerSongUpDate off } } alias updateit { did -i Mdx_dialog 1 1 params $sound($insong.fname).pos 0 $sound($insong.fname).length * * * * 18 .timerSongUpDate 1 1 /updateit } if $devent == sclick && $did == 1 { .timerSongUpDate -p if $gettok($did(1,1),9,32) == end { splay seek $gettok($did(1,1),1,32) .timerSongUpDate -r } } [Error] It Doesn't move and I can't even move it if I wanted too... $insong.fname is: C:\My Documents\My Music\Eminem - I Love You More.mp3 [Error2] If I replace $insong.fname with %mp3play I can move it if I wanted, but still doesn't move on its own/work properly... %mp3play is: Eminem - I Love You More _Kriminal
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
It works just fine when you put it in the right place. dialog Mdx_dialog {
size -1 -1 292 223
title "Dialog"
list 1,20 20 168 30,size
}
on *:dialog:Mdx_dialog:*:*:{
if ($devent == init) {
mdx SetMircVersion $version
mdx MarkDialog $dname
mdx SetControlMDX $dname 1 TrackBar autoticks > bars.mdx
mdx SetBorderStyle $dname 1 windowedge
did -i $dname 1 1 params 0 0 $sound($insong.fname).length * * * * 18
did -i $dname 1 1 tickfreq 1
updateit
}
if ($devent == close) {
.timerSongUpDate off
}
[color:red] if $devent == sclick && $did == 1 {
.timerSongUpDate -p
if $gettok($did(1,1),9,32) == end {
splay seek $gettok($did(1,1),1,32)
.timerSongUpDate -r
}
}[/color]
}
alias -l updateit {
did -i Mdx_dialog 1 1 params $insong.pos 0 $insong.length * * * * 18
.timerSongUpDate 1 1 updateit
} BTW: Try using the {} button in the Remote Editor sometimes.
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
Trying it right now, the thing is when I copy and paste it it's one huge line which is really stupid so thats why theres some errors when I try to paste the code. -_-
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
the thing is when I copy and paste it it's one huge line Copy it from here, paste it into wordpad, copy it again from wordpad, paste it into the editor.
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
dialog Mdx_dialog { size -1 -1 292 223 title "Dialog" list 1,20 20 168 30,size } on *:dialog:Mdx_dialog:*:*:{ if ($devent == init) { mdx SetMircVersion $version mdx MarkDialog $dname mdx SetControlMDX $dname 1 TrackBar autoticks > bars.mdx mdx SetBorderStyle $dname 1 windowedge did -i $dname 1 1 params 0 0 $sound($insong.fname).length * * * * 18 did -i $dname 1 1 tickfreq 1 updateit } if ($devent == close) { .timerSongUpDate off } if $devent == sclick && $did == 1 { .timerSongUpDate -p if $gettok($did(1,1),9,32) == end { splay seek $gettok($did(1,1),1,32) .timerSongUpDate -r } } } alias -l updateit { did -i Mdx_dialog 1 1 params $sound(%songname).pos 0 $sound(%songname).length * * * * 18 .timerSongUpDate 1 1 updateit } It can 'seek' or 'skip' whatever you wanna call it, but it doesn't "tick/move" while the song plays - isn't it supposed to do that? Like a progress bar, sorta, how it increases as the song progresses, I wanted the trackbar to move as well. :P ~Thanks a bunch
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
That's what this line does, and it does do it for me. did -i Mdx_dialog 1 1 params $insong.pos 0 $insong.length * * * * 18
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
Hm, That's odd... dialog Mdx_dialog { size -1 -1 292 223 title "Dialog" list 1,20 20 168 30,size } on *:dialog:Mdx_dialog:*:*:{ if ($devent == init) { mdx SetMircVersion $version mdx MarkDialog $dname mdx SetControlMDX $dname 1 TrackBar autoticks > bars.mdx mdx SetBorderStyle $dname 1 windowedge did -i $dname 1 1 params 0 0 $sound($insong.fname).length * * * * 18 did -i $dname 1 1 tickfreq 1 updateit } if ($devent == close) { .timerSongUpDate off } if $devent == sclick && $did == 1 { .timerSongUpDate -p if $gettok($did(1,1),9,32) == end { splay seek $gettok($did(1,1),1,32) .timerSongUpDate -r } } } alias -l updateit { did -i Mdx_dialog 1 1 params $sound($insong.fname).pos 0 $sound($insong.fname).length * * * * 18 .timerSongUpDate 1 1 updateit } Is what I have and it seems right... 
Last edited by Kriminal; 08/05/04 06:57 AM.
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
I got it. alias -l updateit { did -i Mdx_dialog 1 1 params $sound($insong.fname).pos 0 $sound($insong.fname).length * * * * 18 ^ "$sound($insong.fname).pos wasn't returning the current pos. So I used an alternative identifer to get the pos. of the mp3 that my friend told me about - Thanks Iori, I will put you in the credits of my script, BIG TIME~
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
This: $sound($insong.fname).pos Should be $insong.pos
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
Yeah, I figured that out a few mins ago... I just used $insong.fname.pos :P, but thats shorter, so i'll use it. 
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
It's also what I originally posted
|
|
|
|
Joined: Dec 2003
Posts: 199
Vogon poet
|
OP
Vogon poet
Joined: Dec 2003
Posts: 199 |
PS; Do you know if you can color the trackbar using MDX... (Like the little moving thingy... as well as the rest of the trackbar)
Want to Link Servers? PM Me - EliteIRC.dyndns.org -
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
|
|
|
|
|