mIRC Home    About    Download    Register    News    Help

Print Thread
#131601 02/10/05 12:13 AM
Joined: Jan 2003
Posts: 109
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Jan 2003
Posts: 109
Hi - I've tried to get a window to open with a specified font size according to the mIRC help guide, but it dosn't seem to do it. Any ideas on how I can get this window to open with fint size 9?

window -g1kz0 @LIST.ALL

Thanks in advance!


#Newsroom
Where News & Markets Connect
http://www.inewsroom.net
#131602 02/10/05 12:47 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
/window [-abBcCdeEfg[N]hikl[N]mnoprRsvwxz] [-tN,..,N] [+bdeflLmnstx] <@name> [x y [w h]] [/command] [popup.txt] [font [size]] [iconfile [N]]

note the [font [size]]
means u MUST state the fontname and then optionally the size

so

window -g1kz0 @LIST.ALL fontname 9


**** NOTE this is a real font size NOT the skewed font sizes the font dialog box uses ****

If your manually setting it using the dialog, and then returning to your script and doing it, then it wont match, do this...

(1) Dialog select your wanted font size
(2) //echo -s $window(@LIST.ALL).fontsize
(3) insert statuswindow displayed fontsize into script

#131603 02/10/05 01:21 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
Also, font names that have spaces would need to have "quotes"
(like "courier new")

#131604 02/10/05 02:24 AM
Joined: Jan 2003
Posts: 109
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Jan 2003
Posts: 109
great thanks DaveC - it's working now. I see what you mean by the size difference - I actually had to specify 12 for it show up as 9 in reality...

Cheers! smile


#Newsroom
Where News & Markets Connect
http://www.inewsroom.net
#131605 02/10/05 02:34 AM
Joined: Jan 2003
Posts: 109
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Jan 2003
Posts: 109
Thanks MikeChat


#Newsroom
Where News & Markets Connect
http://www.inewsroom.net
#131606 02/10/05 07:02 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
more likely its the other way around, becuase the FONT DIALOG uses incorrect values, incorrect in the sence that /window and $window both use the same and give the same font size, but the dialog uses a different one.


Link Copied to Clipboard