mIRC Home    About    Download    Register    News    Help

Print Thread
#146727 07/04/06 10:30 AM
Joined: Feb 2003
Posts: 106
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Feb 2003
Posts: 106
I have written a program to generate mirc dialogs. You can add buttons, edit boxes and labels and the size and position can all be adjusted prior to generating the mirc code to incorporate in the remotes section.
Now, if I generate a dialog for my own PC it works fine, but if I then pass the code to a person with a different screen resolution the chances are that the top left corner of the dialog will be off that persons screen.
How can I use mirc to detect screen resolution, so I can incorporate that information into the generated script?


-
Just because it never happened doesn't mean it isn't true.
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
//echo -a $window(-1).w x $window(-1).h


Gone.
Joined: Feb 2003
Posts: 106
L
Vogon poet
OP Offline
Vogon poet
L
Joined: Feb 2003
Posts: 106
thanks smile


-
Just because it never happened doesn't mean it isn't true.
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Quote:
//echo -a $window(-1).w x $window(-1).h


very handy little tidbit


Link Copied to Clipboard