mIRC Home    About    Download    Register    News    Help

Print Thread
#1637 14/12/02 11:45 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
How can I check if a custom window was created on the desktop or not?

#1638 14/12/02 11:57 AM
Joined: Dec 2002
Posts: 144
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
Interesting. Appearantly there isn't a property under $window for it. When you create the window, set the window name into a variable ...


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
#1639 14/12/02 12:16 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
You could check whether $window(windowname).y and $window(windowname).dy are the same and that $window(windowname).x and $window(windowname).dx are the same. If they are then it's a desktop window.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
#1640 14/12/02 12:16 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
$window(name).mdi -returns: $true for normal; $false for desktop windows

#1641 14/12/02 12:26 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
OP Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Quote:
$window(name).mdi -returns: $true for normal; $false for desktop windows


Thx

#1642 14/12/02 12:36 PM
Joined: Dec 2002
Posts: 144
D
Vogon poet
Offline
Vogon poet
D
Joined: Dec 2002
Posts: 144
*curious*

What does mdi stand for?


"Any sufficiently advanced technology is indistinguishable from magic." - Arthur C. Clarke
#1643 14/12/02 12:38 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
You're welcome smile

#1644 14/12/02 12:39 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Multiple Document Interface smile

#1645 14/12/02 12:52 PM
Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
To try and explain better,
If a program has a main window, and other child windows, it is MDI.
e.g. mIRC is MDI, Notepad isn't
The use of .mdi here is a little wrong (I think) but means "is the child window a <normal> child" (confined within mIRC's main window) or not.
Hope it helps a little, I'm not good at explaining. smile


Link Copied to Clipboard