mIRC Home    About    Download    Register    News    Help

Print Thread
#86137 09/06/04 04:39 PM
Joined: Mar 2004
Posts: 36
N
Nodren Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2004
Posts: 36
im curious as to if this is a bug(and if it is, any viable work around?) Basicly, when doing $window().state it returns "normal" for any window type, that isnt active. on the active window, it gives you the actual status for it, hidden, minimized, maximized, normal.

how can we know a window is hidden if it has to be active to know that?

#86138 09/06/04 05:17 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I cannot reproduce the problem. Are you perhaps using $window().state in a /timer ?

Also, I'm confused by your statement: "on the active window, it gives you the actual status for it, hidden, minimized, maximized". How can a window be active and minimized at the same time?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#86139 09/06/04 05:21 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Perhaps related to this?

#86140 09/06/04 07:13 PM
Joined: Mar 2004
Posts: 36
N
Nodren Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Mar 2004
Posts: 36
Quote:
Also, I'm confused by your statement: "on the active window, it gives you the actual status for it, hidden, minimized, maximized". How can a window be active and minimized at the same time?

actually thats my point in why it isnt working, .state property of $window is ment to return one of those, and it wont do that if its not the active window, it will return normal. And no, im not using a /timer, im on mIRC 6.15 win2k.

#86141 10/06/04 05:25 PM
Joined: Dec 2002
Posts: 5,527
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,527
I am unable to reproduce this here. If I use the following timer:

/timer 0 1 echo $window(status window).state

And then change the normal/maximized/minimized state of the status window, and make mIRC the active/non-active application, the /echo always returns the correct value.


Link Copied to Clipboard