mIRC Home    About    Download    Register    News    Help

Print Thread
equivalent of $chan for @windows? #232196 23/05/11 08:06 PM
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
I want to to get the name of the custom window I type something in to

the manual says:

$window(N/@name)

Returns properties for a window.

title returns the text in the titlebar of the window

But I can't quite figure out what the syntax is to return the window name

Re: equivalent of $chan for @windows? [Re: firefox] #232198 23/05/11 08:15 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
$active

Re: equivalent of $chan for @windows? [Re: hixxy] #232201 23/05/11 08:40 PM
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
thanks hixxy

is it possible to make an @window 'flash' (i.e. turn red like a channel does on activity) when something is sent to it via /aline or /echo ?

Re: equivalent of $chan for @windows? [Re: firefox] #232202 23/05/11 09:10 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,876
/help /aline:

Quote:
The -h switch highlights the window's button if it is currently minimized.

Re: equivalent of $chan for @windows? [Re: hixxy] #232203 23/05/11 09:40 PM
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
thanks

is there a way to make the tray/taskbar icon flash too?

Re: equivalent of $chan for @windows? [Re: firefox] #232211 24/05/11 12:15 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
like... /flash ? :o)

Re: equivalent of $chan for @windows? [Re: Horstl] #232226 24/05/11 07:24 PM
Joined: Sep 2007
Posts: 202
F
firefox Offline OP
Fjord artisan
OP Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
indeed sir - thank you!

Re: equivalent of $chan for @windows? [Re: firefox] #232231 25/05/11 07:39 AM
Joined: Mar 2009
Posts: 74
K
KageNoOni Offline
Babel fish
Offline
Babel fish
K
Joined: Mar 2009
Posts: 74
You can also use $target, in case something triggers an event meant for the @window, while the @window isn't the active window. You can also go through existing @windows using $window(<number>)

Re: equivalent of $chan for @windows? [Re: KageNoOni] #232235 25/05/11 06:01 PM
Joined: Jan 2003
Posts: 2,523
Q
qwerty Offline
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Originally Posted By: KageNoOni
You can also use $target, in case something triggers an event meant for the @window, while the @window isn't the active window.
All custom window-related events trigger only when the window is active anyway, so this isn't an issue.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com