mIRC Home    About    Download    Register    News    Help

Print Thread
#98401 23/09/04 02:38 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I trying to create a *.bmp true mirc, but all i get is a black *.bmp, the text arent added to it.. and i dont know what cosing it.. $chr(3) <<-- the char for colour sign. $colour(text) <<-- return 1, thats my default text colour, so that wouldent cose any problem, Testing is just a word i added, it will read the text from a %var later on..

[code]
dialog preview {
title "Preview"
size 220 390 214 9
option dbu
button "Ok",1, 30 110 80 12, ok, hide
icon 2, -1 -5 280 20
}

alias preview {
.remove $mircdirimages/preview.bmp
if ($dialog(preview) == $null) { dialog -mdhvo preview preview }
var %prv = $mircdirimages/preview.bmp
window -phf @preview 10 10 583 24
drawtext -bpc @preview MS Sans Serif 12 1 1 638 20 $chr(3) $+ $colour(text) Testing
drawsave @preview %prv
window -c @preview
update.preview
return %prv
}

alias update.preview {
did -g preview 2 $mircdirimages/preview.bmp
}
[code]


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#98402 23/09/04 03:34 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
replying to me self.. uhu.. i solved the problem there.. but how can i return a %var as it look like ? now when i try to draw the images it returns the $chr(3) not the color of what i want to show. i want to show < nick > but it show: $chr3 $+ 4< $+ $chr(3) and so on smirk confused :tongue: crazy


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#98403 23/09/04 03:41 PM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
Try evaluating %var twice, $eval(%var,2) or $(%var,2) or even $evalnext(%var) where the latter identifier works like the others but evaluates it one more time than specified in the second parameter which is optional in this case

#98404 23/09/04 03:45 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Thnx. worked grin


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }

Link Copied to Clipboard