mIRC Home    About    Download    Register    News    Help

Print Thread
#198576 01/05/08 05:16 PM
Joined: Jun 2004
Posts: 139
N
Ninko Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Jun 2004
Posts: 139
Hi there,
Does the on open event trigger if the window was opening by me? eg I noticed it triggers when someone querys me, but if I open a query window, it doesn't.

Thanks


Ninko

Ninko #198580 01/05/08 06:17 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Originally Posted By: Ninko

Does the on open event trigger if the window was opening by me?


No.

RoCk #198581 01/05/08 06:40 PM
Joined: Jun 2004
Posts: 139
N
Ninko Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Jun 2004
Posts: 139
Thanks RoCk, One other quick question...
How do I set the font and size of text in a custom window?

/window @test Arial 14

That only applys font, not the size.

Thanks


Ninko

Ninko #198583 01/05/08 07:08 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Quote:
Thanks RoCk, One other quick question...
How do I set the font and size of text in a custom window?

/window @test Arial 14

That only applys font, not the size.


Works fine here. I have a feeling it's working for you too but there's some confusion about what that "14" means: In mIRC a positive number for a font size represents the size in pixels, you need to use a negative number to indicate that the number specified is a point size. The Windows font dialog uses points, however mIRC's $window(window-name).fontsize returns a pixel value - I suspect if you type //echo -a $window(@test).fontsize right now it will confirm that the font size is currently 14 pixels (which is about 11 points). Use //window @test Arial [color:red]-14[/color] to get 14 point Arial.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Jun 2004
Posts: 139
N
Ninko Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: Jun 2004
Posts: 139
lol ahhh yes your right starbucks_mafia, how on earth did you know that :-P

Thanks


Ninko


Link Copied to Clipboard