mIRC Home    About    Download    Register    News    Help

Print Thread
#23102 08/05/03 12:47 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
if ($did == 73) {
return set %lyr.art $?="What Artist?"
return set %lyr.tit $?="What Title?"
/lyrics %lyr.art - %lyr.tit
}

it isnt working, any suggestions??

#23103 08/05/03 01:32 AM
Joined: May 2003
Posts: 177
P
Vogon poet
Offline
Vogon poet
P
Joined: May 2003
Posts: 177
if ($did == 73) {
set %lyr.art $?="What Artist?"
set %lyr.tit $?="What Title?"
lyrics %lyr.art - %lyr.tit
}

You don't need the 'return' command.

#23104 08/05/03 01:41 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
that didnt work either

#23105 08/05/03 01:46 AM
Joined: May 2003
Posts: 177
P
Vogon poet
Offline
Vogon poet
P
Joined: May 2003
Posts: 177
Then it must be something else in your script that's causing it not to work correctly. Without seeing the script's code, I can't help you.

What's not working? Is it not triggering? Do you get the prompts?

#23106 08/05/03 01:53 AM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
on *:dialog:bmp3:sclick:73: {
echo 123
set %lyr.art $?="What Artist?"
set %lyr.tit $?="What Title?"
lyrics %lyr.art - %lyr.tit
echo 456
}


this didnt work either

all i did was add a few buttons to [BEST/MP3], this being one of them

#23107 08/05/03 06:47 AM
Joined: May 2003
Posts: 730
S
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
well the 'echo' is wrong.
most mirc commands u are typing and get an error the command will /halt.
so if u want to echo something to the ACTIVE window do /echo -a 123
or /echo -a 456
but don't do /echo 123 becuz the First parameter of the echo command is a color, u typed a number so mirc thought its a color number and then he get the error becuz u didn't spcified any text, anyway use -a switch for active window

#23108 08/05/03 11:15 AM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
/help $?
...
[b]Note: This identifier cannot be used in a script event. One way around this is to use a /timer to initiate an input request after the script ends.[b]



Code:
//if ( khaled isgod ) echo yes | else echo no
#23109 08/05/03 11:18 AM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On DIALOG is an exception to that. $input can also be launched from this event smile

#23110 08/05/03 12:33 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
how would i amke it work then? im not sure where to put the timer

#23111 08/05/03 12:47 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Your code is alright,
Code:
on *:dialog:bmp3:sclick:73: {
  echo -a It works!
  var %lyr.art = $$?="What Artist?"
  var %lyr.tit = $$?="What Title?"
  lyrics %lyr.art - %lyr.tit
}

I can think of a few reasons that may cause it not to work.
  • /remote is off.
  • The dialog name, or button id, is spelled wrong in this event.
  • You have another, wider, on DIALOG event above. Try moving it to a new remote file and see if it works.

#23112 08/05/03 07:04 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
the only thing it can be by what u said is the wider event, i cant move it... the dialog is in the only file with the events

#23113 08/05/03 07:05 PM
Joined: Mar 2003
Posts: 437
M
MTech Offline OP
Fjord artisan
OP Offline
Fjord artisan
M
Joined: Mar 2003
Posts: 437
ok i moved it, i t works, but cant i put it in the file somwhere? it didnt work in the wider event.

#23114 08/05/03 10:56 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Yes, put it above the other events.


Link Copied to Clipboard