mIRC Home    About    Download    Register    News    Help

Print Thread
#113275 03/03/05 02:36 AM
Joined: Mar 2005
Posts: 5
R
Racy Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Mar 2005
Posts: 5
error with the command /font,
when it is tried to take the values of a file INI, although does not exist, gives to an error mirc or blocked
example: /font -z $readini(c:\a\a.ini,aaaaaaa,aaaa) $readini(c:\a\a.ini,aaaaaaa,aaaa)

sorry for my bad english

#113276 03/03/05 11:06 AM
Joined: Jul 2004
Posts: 3
M
M4C Offline
Self-satisified door
Offline
Self-satisified door
M
Joined: Jul 2004
Posts: 3
iour einglis jis verri bá, jou to openin

#113277 03/03/05 11:25 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
$readini() has nothing to do with the issue. In your command, it's not even evaluated, since you used a single slash. In fact, if you use // it works as expected, ie like /font -z $null $null, ie /font -z.

The problem is when you pass mirc an invalid font name, in which case it chooses to change the font to Arial 12. It seems to be a bug; I would expect mirc to ignore invalid fonts and give the same result as /font -z (with no params). Another clue that this may indeed be a bug is that, after specifying an invalid font, $window().fontsize returns 12 but $window().font returns $null.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard