mIRC Home    About    Download    Register    News    Help

Print Thread
on *:OPEN: events #2863 21/12/02 11:14 AM
Joined: Dec 2002
Posts: 4
A
aemarx Offline OP
Self-satisified door
OP Offline
Self-satisified door
A
Joined: Dec 2002
Posts: 4
on OPEN only trigger when window automatically open by mIRC but not when manually open by user.I think its better trigger both.

Re: on *:OPEN: events #2864 21/12/02 04:40 PM
Joined: Dec 2002
Posts: 1,321
H
Hammer Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Since you are they one opening the window with a /window command, you (or your script) will always know when/why a window was opened and what it's for. Therefore, if you wanted a more robust on OPEN to detect when even YOU opened a window, you can either use signals to check for on OPEN or you can write your own /window-type alias and have everywhere in your script call that, including all of your on OPEN events. In the on OPEN event, $event is "open", which your alias could test for and handle accordingly.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C