mIRC Homepage
Posted By: Incitist Screen Resolution - 24/11/03 10:06 AM
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
Posted By: Indefinate Re: Screen Resolution - 24/11/03 10:10 AM
moo.dll - 104kb.

Not small enough?

Also, screen resolution lookup with moo.dll:

$dll(moo.dll,screeninfo,_)

andy
Posted By: Incitist Re: Screen Resolution - 24/11/03 10:14 AM
Was thinking of just having it all in a single file. Guess that ain't possible, heh?
Posted By: Charlie Re: Screen Resolution - 24/11/03 12:42 PM
use $window identifier

echo -a ::: $window(-1).w
echo -a ::: $window(-1).h
Posted By: Incitist Re: Screen Resolution - 25/11/03 01:20 AM
Thanks for all your help.
Posted By: Doqnach Re: Screen Resolution - 26/11/03 11:59 AM
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 :-[
Posted By: starbucks_mafia Re: Screen Resolution - 26/11/03 12:41 PM
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.
© mIRC Discussion Forums