I still strongly support these ideas, no reason for them not to be included really and it would be handy to have access to them
![smile smile](/images/graemlins/mirc/smile.gif)
I've been playing with sendkeys to open the font dialog and set the font of a custom window, but my attempt is thwarted by the fact that you can't catch the font dialog closing, which means you don't know when to /return the result
![frown frown](/images/graemlins/mirc/frown.gif)
You might want to have a play and see if you can come up with anything. I tried using a while loop to freeze mIRC while the font dialog is open, but it unfortunately stops it from opening.
alias sfont {
window @sfont
var %object = sfont. $+ $ticks, %ticks = $ticks
.comopen %object wscript.shell
.comclose %object $com(%object,sendkeys,1,bstr,% $+ vf)
while ($calc($ticks - %ticks) < $1) noop
if ($window(@sfont).font $window(@sfont).fontsize $window(@sfont).fondbold $window(@sfont).fontitalic != $null) noop
window -c @sfont
return $v1
}
$sfont(5000) for a 5 second dialog (5 seconds to choose a font) was my theory, but it failed :p