mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 38
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 38
Since the on *:open:@: doesnt work (only on close) im looking for some other way to get a trigger when a custom window opens up, i tried on *:active:@: too but that didnt work...
the trigger can be anything, as long as it triggers shocked

Thx for your help!

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
On Open is meant to monitor only unexpected windows. unlike query and DCC windows, custom windows are open only by the /window command, so you'd add the initialization commands below it.

Instead of -

On *:open:@test:{
aline @test hello!
}

Use -

/window @test
/aline @test hello!

hope that helped smirk

Joined: Jan 2003
Posts: 38
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 38
sort of, i guess i should have been more clear in my previous post.
When the custom window opens i want it to run another alias (which in my case is a custom treeview switchbar, so it refreshes).

Last edited by toe_cutter; 28/01/03 04:20 PM.
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Perhaps a /window alias
Code:
alias window {
  window $1-
  ; switchbar commands
}

Joined: Jan 2003
Posts: 38
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 38
Thx for the help! it worked nicely smile i thought about this at first, but i didnt think it would work with the existing /window, should probably try more than cry wink

Thx again!


Link Copied to Clipboard