mIRC Home    About    Download    Register    News    Help

Print Thread
#15329 14/03/03 09:05 PM
Joined: Mar 2003
Posts: 86
N
NRJ Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 86
I want to script a animated dialog with MDX.dll. Can somebody say me, what is wrong in my script? It doesn's work.


alias button {
dialog -mdr button button
}

dialog button {
title "Laden..."
size 350 250 300 150

button "Laden...", 10, 20 20 250 100, multi
}

on *IALOG:button:init:0: {
mdx SetMircVersion $version
mdx MarkDialog button $dialog(button).hwnd
mdx SetControlMDX 10 autoplay center > $ctlgen

did -a button 10 open $scriptdir $+ filecopy.avi
did -a button 10 play
}



Greets, Mathias

#15330 14/03/03 10:43 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I am not too farmiliar with the mdx dll but as far as i can see you have ..

Code:
alias button {
dialog -mdr button button
}

dialog button {
title "Laden..."
size 350 250 300 150

button "Laden...", 10, 20 20 250 100, multi
}

[color:red]on *IALOG:[/color]button:init:0: {
mdx SetMircVersion $version
mdx MarkDialog button $dialog(button).hwnd
mdx SetControlMDX 10 autoplay center > $ctlgen

did -a button 10 open $scriptdir $+ filecopy.avi
did -a button 10 play
}

I highlighted the portion that doesn't look right.. You may try fixing that and reposting any problems after that.. grin

Last edited by KingTomato; 14/03/03 10:43 PM.

-KingTomato
#15331 14/03/03 11:40 PM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
yes as above u need to fix that to say ON *:DIALOG:dialogname:init:0: {


D3m0nnet.com
#15332 15/03/03 10:40 AM
Joined: Mar 2003
Posts: 86
N
NRJ Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Mar 2003
Posts: 86
sorry, it must as follows loud:

alias button {
dialog -mdr button button
}

dialog button {
title "Laden..."
size 350 250 300 150
button "Laden...", 10, 20 20 250 100, multi
}

on *:DIALOG:button:init:0: {
mdx SetMircVersion $version
mdx MarkDialog button $dialog(button).hwnd
mdx SetControlMDX 10 autoplay center > $ctlgen

did -a button 10 open $scriptdir $+ filecopy.avidid -a button 10 play
}


when I want to run the script with /button, i can only see the dialog with a button (not animation) and an error message:

ERROR MDXE4 Plug-in "ctl_gen.mdx" does not offer a control named "autoplay"

or:
ERROR MDXE4 Plug-in "ctl_gen.mdx" does not offer a control named "center"

It doesn't work frown

Greets, Mathias


Link Copied to Clipboard