mIRC Home    About    Download    Register    News    Help

Print Thread
#61643 24/11/03 10:06 AM
Joined: Nov 2003
Posts: 6
I
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Nov 2003
Posts: 6
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
Joined: Jan 2003
Posts: 18
I
Pikka bird
Offline
Pikka bird
I
Joined: Jan 2003
Posts: 18
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
Joined: Nov 2003
Posts: 6
I
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Nov 2003
Posts: 6
Was thinking of just having it all in a single file. Guess that ain't possible, heh?

#61646 24/11/03 12:42 PM
Joined: Dec 2002
Posts: 29
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Dec 2002
Posts: 29
use $window identifier

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


Charlie
#61647 25/11/03 01:20 AM
Joined: Nov 2003
Posts: 6
I
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Nov 2003
Posts: 6
Thanks for all your help.

#61648 26/11/03 11:59 AM
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
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 :-[


If it ain't broken, don't fix it!
#61649 26/11/03 12:41 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard