mIRC Home    About    Download    Register    News    Help

Print Thread
#60792 17/11/03 04:51 PM
Joined: Jan 2003
Posts: 98
T
twigboy Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jan 2003
Posts: 98
just trying to make a "preview" thing for my mp3 player
and whenever i change the text/theme in any way, it'll preview it automatically

when i check the $cacheFile with mspaint, it works exactly the way i want it
but when i try to load it using /did -g
its a black square

Code:
alias -l drawPreview {
  ;// $1 = target $dname
  ;// $2 = target icon $did
  ;// $3 = print $text-

  mdx.mark $1

  var %cacheFile $cachePicture
  var %info $dll($dllMDX, MoveControl, $2)

  window -fhp @drawPreview -1 -1 $gettok(%info, -2, 32) $gettok(%info, -1, 32)

  if ($3-) {
    drawtext -pbn @drawPreview $colour(normal) $colour(background) $+(", $window($active).font, ") -9 5 5 $ifmatch
    drawsave @drawPreview %cacheFile
    did -g $1 $2 %cacheFile
  }

  window -c @drawPreview
  ;// .remove %cacheFile
}

#60793 18/11/03 02:18 PM
Joined: Jan 2003
Posts: 98
T
twigboy Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jan 2003
Posts: 98
fixed (even if nobody cares)

just the $cacheFile error
changed it to something.bmp and it worked

#60794 18/11/03 02:33 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Of course we care, but if there are no replies it usually means we have no idea what could be wrong.


Link Copied to Clipboard