mIRC Home    About    Download    Register    News    Help

Print Thread
#9209 01/02/03 04:22 PM
Joined: Feb 2003
Posts: 1
D
Druida Offline OP
Mostly harmless
OP Offline
Mostly harmless
D
Joined: Feb 2003
Posts: 1
Hello!
Here's the thing:
I wanted to make the "notifies" apear in a dialog, so I have used the "on notify" event, making it open a small dialog whenever someone in the notify list joins IRC. The problem is this:
When the dialog opens, it automaticly opens as the active "window". I want things to work like this:
Imagine your typing something in a "channel", and someone in your notify list joins IRC. The dialog would open, showing that $nick is on IRC, but without interrupt the typing! On other words, the dialog would open, being visible, but without being active!
I have everything except the "/dialog" command that will allow this!
I don't know if i made myself clear...

The "code":

FILE: Script.ini
on ^1:NOTIFY:{
if ($notify($nick).note != $null) { .set %notifynote $notify($nick).note }
else { .unset %notifynote }
.set %notifynick $nick
.notify.start
halt
}

dialog notify {
title "Notify"
size -1 -1 300 100
icon 1, 10 10 50 60, system\icons\info.ico
text "* Notify List *",2, 50 10 300 15,left
text "",4, 60 25 190 15,left
text "",5, 60 40 190 15,left
button "Close", 120, 250 40 20 20
}

on 1:dialog:notify:init:*:{
.did -i notify 4 4 %notifynick está no IRC;
if (%notifynote != $null) { .did -i notify 5 5 ( %notifynote ) }
}

FILE: Alias.INI
/notify.start { .dialog ????????????????????????????????????? }

I'm missing the "??????" part!
Using " .dialog -m notify notify " makes the dialog active!



I hope you understood me.

PS: Sorry my English! I'm Portuguese, and I usually don't speak or write in English...

#9210 01/02/03 06:17 PM
Joined: Jan 2003
Posts: 94
S
Babel fish
Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
You might want to try this:
Code:
/notify.start { var %a = $active | .dialog -m notify notify | window -a $+(",%a,") }


-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk
#9211 01/02/03 06:50 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
window -a $+(",$active,") would work as well.

#9212 01/02/03 06:59 PM
Joined: Jan 2003
Posts: 94
S
Babel fish
Offline
Babel fish
S
Joined: Jan 2003
Posts: 94
i thought the dialog would be the new $active since it gets activated,
/me shrugs


-
E-Mail: mirc_sabby@hotmail.com
Network: irc.enterthegame.com
Channel: #Helpdesk
#9213 01/02/03 08:17 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Yeah that's reasonable.


Link Copied to Clipboard