mIRC Home    About    Download    Register    News    Help

Print Thread
#61643 24/11/03 10:06 AM
I
Incitist
Incitist
I
I need help getting the current screen resolution. Is there a command or are there identifiers for this? I know it is possible to obtain this information from an external dll file, however, I want to keep this script small... Unless it involves a dll file that ships with windows, is there any other way to do this?

Thanks

#61644 24/11/03 10:10 AM
I
Indefinate
Indefinate
I
moo.dll - 104kb.

Not small enough?

Also, screen resolution lookup with moo.dll:

$dll(moo.dll,screeninfo,_)

andy

#61645 24/11/03 10:14 AM
I
Incitist
Incitist
I
Was thinking of just having it all in a single file. Guess that ain't possible, heh?

#61646 24/11/03 12:42 PM
C
Charlie
Charlie
C
use $window identifier

echo -a ::: $window(-1).w
echo -a ::: $window(-1).h

#61647 25/11/03 01:20 AM
I
Incitist
Incitist
I
Thanks for all your help.

#61648 26/11/03 11:59 AM
Joined: Jan 2003
Posts: 1,057
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,057
cool, never knew -1 existed...

there are so damn much undocumented features and tricks :-[

anyone got a good URL with ALL of them on it? (or at least almost all)

I know there is a thread about it on this forum but hasn't got them all :-[

#61649 26/11/03 12:41 PM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
Helpfile under $window:
Quote:
Note: You can also get the .w and .h properties by specifying: -1 for the width and height of the screen, -2 for the main mIRC window, and -3 for the MDI window where all other windows inside mIRC are displayed.


There aren't that many useful undocumented features. Off the top of my head I can only think of 3 - $pi, $nickmode, and the use of ranges in $bvar(). Most of the things listed in threads about undocumented features are undocumented for a reason - they're either bugged or deprecated. And then there's plenty people say are undocumented where they've made the mistake like you just did with $window(-1) by simply not seeing it in the documentation.


Link Copied to Clipboard