running mIRC v7.43 on XP SP3 using 42K RAM...

This works with a custom /query <nick> alias..

Here is the code:

Code:
 alias query { 
  if (!$2) { !query $1 | bg $1 }
  else { !query $1 | bg $1 | msg $1- }
  haltdef
}

Here is the code for /bg:

Code:
alias bg {
  if (!$1) { return }
  var %n = $1
  tokenize 32 $mkfn($1)

  window -pdCk0arh +eLf @logo -1 -1 840 90
  drawtext -o @logo 01 Tahoma 60 20 7 $iif($len(%n) >= 22,$+($mid(%n,1,22),...),%n)
  drawtext -o @logo 04 Tahoma 60 20 5 $iif($len(%n) >= 22,$+($mid(%n,1,22),...),%n)

  drawsave -b32 @logo $+($scriptdir,$1,.png)
  window -c @logo

  background -pn %n $qt($+($scriptdir,$1,.png))
  .remove $qt($+($scriptdir,$1,.png))
}

The error:

Code:
* /background: unable to load 'C:\mIRC\scripts\test.png' (line 314, theme.mrc)

I "sometimes" get this error on the /background line. The file exists.

Please fix this!

Last edited by _entropy; 24/08/15 04:54 AM.