mIRC Whiteboard — File Browser
mIRCWhiteboardv1.0 / mIRCWhiteboardv1.0 / wboard2.mrc
wboard2.mrc — 18.37 KB — Download this file
;wboard2.mrc
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
; mIRC WhiteBoard by xFurYx
; Please read the documentation for directions on
; loading and usage.
;
; To contact me:
; Find me in UnderNet #mIRC-Scripts as fury, fury_,
; furry, xFurYx or furry_, or E-Mail me at aft@akula.com.
;
; Please read the enclosed wboard.txt for directions on
; how to use this addon.
;-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
on 1:SOCKOPEN:wbpsend: {
if ($sockerr > 0) { wb.ersp $errorcode($sockerr) | return }
if (%w.pfile.sender = 1) {
unset %dontsend | unset %w.pfile.sender | bread %w.pfile %w.psend.on 4000 &read
sockwrite wbpsend &read | inc %w.psend.on 4000
}
else { remove %w.pfile.name }
}
on 1:SOCKCLOSE:wbpsend:unset %dontsend
on 1:SOCKREAD:wbpsend: {
if ($sockerr > 0) { return }
:nextread
if ($sock(wbpsend) != $null) { sockread &temp }
if ($sockbr = 0) { return }
bwrite %w.pfile.name -1 &temp
updgpwin $lof(%w.pfile.name) %w.pfile.size
if ($lof(%w.pfile.name) >= %w.pfile.size) {
sockclose wbpsend
window -phf @wb.pic 0 0 %w.pfile.w %w.pfile.h
drawpic @wb.pic 0 0 %w.pfile.name | %w = $calc(((540 - %w.pfile.x) + 10) - 1) | %h = $calc(((240 - %w.pfile.y) + 30) - 1)
drawcopy @wb.pic 0 0 %w %h $w %w.pfile.x %w.pfile.y | close -@ @wb.pic | return
}
goto nextread
}
on 1:SOCKLISTEN:wbpsendL:sockaccept wbpsend | sockclose wbpsendL
on 1:SOCKWRITE:wbpsend: {
if (%dontsend = 1) { return }
if (%w.psendon > $lof(%w.pfile)) { return }
if ($calc($lof(%w.pfile) - %w.psend.on) <= 4000) {
%howmuch = $calc($lof(%w.pfile) - %w.psend.on) | bread %w.pfile %w.psend.on %howmuch &read
sockwrite wbpsend &read | %dontsend = 1
return
}
bread %w.pfile %w.psend.on 4000 &read
sockwrite wbpsend &read | inc %w.psend.on 4000
}
alias ct if ($1 = ltl) { if (%w.ltl = $null) { ct free } | ct1 %w.ltl } | ct1 $1
alias ct1 {
unset %tool | if (%w.ltl = $null) { %w.ltl = line } | else { %w.ltl = %w.t }
%tool = $readini $scriptdirwboard.ini Whiteboard_Tools $1 | if (%tool = $null) { return } | else { goto done }
else { return }
:done | clearbox $w 553 230 73 17 | drawtext $w 4 arial 15 556 232 %tool | %w.t = $1
if (((%w.s = 1) || (%w.s = 3) || (%w.s = 5) || (%w.s = 10)) && ((%w.t = freec) || (%w.t = linetoline) || (%w.t = rect) || (%w.t = free) || (%w.t = line))) { stt $1 %w.s }
if ((%w.t = freed) && (%w.s != 1) && (%w.s != 3) && (%w.s != 5) && (%w.s != 10)) { stt $1 11 }
else { stt $1 %w.s }
}
alias drawtooltools {
drawrect -f $w 0 1 553 250 73 75 | drawrect -f $w 0 1 553 250 73 75 | drawrect $w 1 1 553 250 73 75
if (($1 = circ) || ($1 = fill) || ($1 = move) || ($1 = copy) || ($1 = pic) || ($1 = inverse) || ($1 = frect) || ($1 = getclr)) { drawline $w 4 1 553 250 626 325 | drawline $w 4 1 626 250 553 325 }
if (($1 = free) || ($1 = rect) || ($1 = line) || ($1 = freec) || (%tool = linetoline)) {
drawline $w 1 1 553 265 626 265 | drawline $w 1 1 560 258 619 258
drawline $w 1 1 553 280 626 280 | drawline $w 1 3 560 273 619 273
drawline $w 1 1 553 296 626 296 | drawline $w 1 5 559 288 620 288
drawline $w 1 1 553 312 626 312 | drawline $w 1 10 562 305 617 305
drawtext $w 1 arial 12 559 314 Custom Size...
}
if (($1 = freed) || ($1 = spray)) {
drawrect $w 1 1 553 250 36 37 | drawrect $w 1 1 589 250 37 37 | drawrect $w 1 1 553 287 36 38 | drawrect $w 1 1 589 287 37 38
drawdot $w 1 1 571 268 | drawdot $w 1 3 608 269 | drawdot $w 1 5 571 305 | drawdot $w 1 10 607 305
}
if ($1 = erase) {
drawrect $w 1 1 553 250 36 37 | drawrect $w 1 1 589 250 37 37 | drawrect $w 1 1 553 287 36 38 | drawrect $w 1 1 589 287 37 38
drawtext $w 1 arial 15 560 263 Tiny | drawtext $w 1 arial 15 591 263 Small | drawtext $w 1 arial 15 556 300 Large | drawtext $w 1 arial 15 593 300 Huge
}
if ($1 = text) {
drawrect $w 1 1 560 260 35 17 | drawtext $w 1 arial 15 563 262 %w.txt.size
drawpic $w 599 263 $scriptdirupar.bmp | drawpic $w 612 263 $scriptdirdownar.bmp
btn $w 560 290 58 20 | drawtext -o $w 1 linedraw 12 575 294 Font...
}
}
alias stt {
drawtooltools $1
if (($1 = free) || ($1 = rect) || ($1 = line) || ($1 = freec) || (%tool = linetoline)) {
if ($2 = 1) { %w.s = 1 | drawrect -f $w 2 1 554 251 72 14 | drawline $w 0 1 560 258 619 258 }
if ($2 = 3) { %w.s = 3 | drawrect -f $w 2 1 554 266 72 14 | drawline $w 0 3 560 273 619 273 }
if ($2 = 5) { %w.s = 5 | drawrect -f $w 2 1 554 281 72 14 | drawline $w 0 5 559 288 620 288 }
if ($2 = 10) { %w.s = 10 | drawrect -f $w 2 1 554 297 72 14 | drawline $w 0 10 562 305 617 305 }
if ($2 = 11) { dialog INPUT @ask What Size Lines | drawtext -o @ask 1 Linedraw 15 60 30 What size lines (Number 1-50) }
}
if (($1 = freed) || ($1 = spray)) {
if ($2 = 1) { %w.s = 1 | drawrect -f $w 2 1 553 250 36 37 | drawdot $w 0 1 571 268 }
if ($2 = 3) { %w.s = 3 | drawrect -f $w 2 1 589 250 37 37 | drawdot $w 0 3 608 269 }
if ($2 = 5) { %w.s = 5 | drawrect -f $w 2 1 553 287 36 38 | drawdot $w 0 5 571 305 }
if ($2 = 10) { %w.s = 10 | drawrect -f $w 2 1 589 287 37 38 | drawdot $w 0 10 607 305 }
if ($2 = 11) { %w.s = 10 | drawrect -f $w 2 1 589 287 37 38 | drawdot $w 0 10 607 305 }
}
if ($1 = erase) {
if ($2 = 1) { %w.rs = 1 | drawrect -f $w 2 1 553 250 36 37 | drawtext $w 0 arial 15 560 263 Tiny }
if ($2 = 10) { %w.rs = 10 | drawrect -f $w 2 1 589 250 37 37 | drawtext $w 0 arial 15 591 263 Small }
if ($2 = 20) { %w.rs = 20 | drawrect -f $w 2 1 553 287 36 38 | drawtext $w 0 arial 15 556 300 Large }
if ($2 = 40) { %w.rs = 40 | drawrect -f $w 2 1 589 287 37 38 | drawtext $w 0 arial 15 593 300 Huge }
}
}
on 1:INPUT:@ask: {
if (($1 !isnum) || ($1 > 50)) {
if ((%w.t = free) || (%w.t = rect) || (%w.t = line) || (%w.t = freec)) {
if ((%w.s = 1) || (%w.s = 3) || (%w.s = 5) || (%w.s = 10)) { stt %w.s | close -@ @ask | halt }
else { drawrect -f $w 2 1 553 312 72 13 | drawtext $w 0 arial 12 559 314 Custom Size... | close -@ @ask | halt }
}
else { close -@ @ask | halt }
}
%w.s = $1 | drawrect -f $w 2 1 553 312 72 13 | drawtext $w 0 arial 12 559 314 Custom Size...
close -@ @ask
}
alias drawmove close -@ @wb.move.pic | window -ph @wb.move.pic | drawcopy -t $w 16777215 $2 $3 $4 $5 @wb.move.pic 0 0 | drawrect -f $w 0 1 $2 $3 $4 $5 | drawcopy -t @wb.move.pic 16777215 0 0 $4 $5 $w $7 $8 | close -@ @wb.move.pic
alias drawcpic drawrect -f $w 0 1 10 30 540 240 | drawrect $w 1 1 10 30 540 240
alias dc2 drawcopy -t $w 16777215 $1 $2 $3 $4 $w $5 $6 $3 $4
alias drawspray {
%y = $calc($4 - $1) | %x = $calc($3 - $1)
:next | inc %x $r(1,50) | if (%x > $calc($3 + $1)) { inc %y | %x = $calc($3 - $1) | goto next } | if (%y > $calc($4 + $1)) { return }
drawdot -r $w $2 1 %x %y
goto next
}
alias sprayt if ($mouse.key = 0) { .timerDSPRAY off | return } | drawspray $1-
alias validxy {
if ((%w.t != freed) && (%w.t != erase)) { %sizeT = $round($calc($3 / 2),0) } | else {
if (%w.t = erase) { %sizeT = %w.rs }
else { %sizeT = %w.s }
}
if (%sizeT = 0) { %sizeT = 1 } | %xT = $calc(10 + %sizeT + 3) | %yT = $calc(30 + %sizeT + 4)
%wT = $round($calc(540 - $3 - 5),0) | %hT = $round($calc(240 - ((%sizeT + 4) * 2) + 2),0)
if ($inrect($1,$2,%xT,%yT,%wT,%hT) = $false) { return $false } | else { return $true }
}
alias accon csd ACCEPTCON | csd 187 $me 1.0 | white
alias noaccon csd NOACCEPTCON | sockclose whiteboard
alias drt if (%w.lastc = $1-) { return } | clearbox $w 553 210 73 17 | drawtext $w 1 arial 15 556 212 $1- | %w.lastc = $1-
alias csd if ($wb.cntd = $false) { return } | if (($sock(whiteboard).mark = $null) && ($1 != 187) && ($1 != got187) && ($1 != ACCEPTCON) && ($1 != NOACCEPTCON)) { wb.pwait | return } | write $scriptdirwhite.cac $1- | if ($sock(whiteboard).sq = 0) { sockwrite -n whiteboard $read -l1 $scriptdirwhite.cac } | if ($window($w).x != $null) { lighton sd }
alias lighton if ($1 = sd) { drawdot $w 4 4 517 8 } | if ($1 = rd) { drawdot $w 4 4 542 8 } | else { return } | return
alias lightoff if ($1 = sd) { drawdot $w 1 4 517 8 } | if ($1 = rd) { drawdot $w 1 4 542 8 } | else { return } | return
alias wb.cntd if ($sock(whiteboard).ip = $null) { return $false } | else { return $true }
alias wb.cntd2 if ($sock(whiteboard).ip = $null) { return [NOT CONNECTED] } | else { return [CONNECTED] }
alias dtp {
%xy = $readini $scriptdirwboard.ini Whiteboard_Disp_XY xy
%i = 0 | :next | inc %i | if (%i > $gettok(%xy,0,32)) { return } | %get = $replace($gettok(%xy,%i,32),$chr(95),$chr(44))
if ($inrect($1,$2,$gettok(%get,1,44),$gettok(%get,2,44),$gettok(%get,3,44),$gettok(%get,4,44)) = $true) { %name = $readini $scriptdirwboard.ini Whiteboard_Disp_Name %i | drt %name | return }
goto next
}
alias cv if ($3 = $null) { %size = %w.s } | else { %size = $3 } | if ($validxy($1,$2,%size) = $false) { halt } | return
alias mk if ($1 = 0) { unset %d.* | halt } | return
alias wcew return @Whiteboard Color Editor
alias wsiw return @Whiteboard Socket Info
alias upar return $scriptdirupar.bmp
alias dar return $scriptdirdownar.bmp
alias uds unset %d.*
alias wbversion return 1.0
alias w return @Whiteboard
alias setsxsy %sx = $calc($1 + %ix) | %sy = $calc($2 + %iy) | return
alias haltxy %sx = %sx1 | %sy = %sy1 | halt
alias sockinfowin {
if ($window($wsiw).x != $null) { window -a $wsiw | return }
window -p $wsiw 50 50 200 175
drawtext $wsiw 2 arial 30 30 10 Whiteboard
drawtext $wsiw 2 arial 30 30 40 Socket Info
drawrect $wsiw 4 2 10 10 170 60
drawtext $wsiw 1 arial 15 40 80 $wb.cntd2
drawtext $wsiw 1 arial 15 10 100 Bytes Recieved
drawtext $wsiw 1 arial 15 10 120 Bytes Sent
if ($wb.cntd = $false) { %w.br = 0 | %w.bs = 0 | %w.pn = N/A }
else { %w.br = $sock(whiteboard).rcvd | %w.bs = $sock(whiteboard).sent | %w.pn = $sock(whiteboard).mark }
:dowritem | chbr %w.br | chbs %w.bs
}
alias updswin {
if ($window($wsiw).x = $null) { return }
if ($wb.cntd = $false) { %w.br = 0 | %w.bs = 0 | %w.pn = N/A }
else { %w.br = $sock(whiteboard).rcvd | %w.bs = $sock(whiteboard).sent | %w.pn = $sock(whiteboard).mark }
:dowritem | chbr %w.br | chbs %w.bs
}
alias chbr clearbox $wsiw 100 100 86 17 | drawtext $wsiw 1 arial 15 103 102 $1
alias chbs clearbox $wsiw 100 120 86 17 | drawtext $wsiw 1 arial 15 103 122 $1
alias edclrwin {
if ($window($wcew).x != $null) { window -a $wcew }
else { window -pf $wcew 70 70 100 200 }
if ($1 = $null) { %w.cec = 0 } | else { if ($1 > 22) { return } | %w.cec = $1 }
drawrect -f $wcew 0 1 0 0 100 200
drawrect $wcew 1 1 10 10 83 40
drawrect $wcew 1 1 10 60 60 17
drawpic $wcew 75 63 $upar
drawpic $wcew 90 63 $dar
drawtext $wcew 1 arial 15 10 80 Current Color
drawtext $wcew 1 arial 15 10 100 R:
drawtext $wcew 1 arial 15 10 120 G:
drawtext $wcew 1 arial 15 10 140 B:
drawrect $wcew 1 1 28 100 42 17
drawrect $wcew 1 1 28 120 42 17
drawrect $wcew 1 1 28 140 42 17
drawpic $wcew 75 103 $upar | drawpic $wcew 90 103 $dar
drawpic $wcew 75 123 $upar | drawpic $wcew 90 123 $dar
drawpic $wcew 75 143 $upar | drawpic $wcew 90 143 $dar
btn $wcew 10 170 83 20
drawtext -o $wcew 1 Linedraw 12 23 173 Save Color
dochclr | chcn %w.cec
}
menu @Whiteboard Color Editor {
sclick:dosdc $mouse.x $mouse.y
dclick:dosdc $mouse.x $mouse.y 5
}
alias dosdc {
if ($inrect($1,$2,10,170,83,20) = $true) { %clr = $getdot($wcew,11,11) | writeini $scriptdirwboard.ini Whiteboard_Current_Colors %w.cec %clr | drawclr }
if ($inrect($1,$2,75,63,14,14) = $true) { inccnum } | if ($inrect($1,$2,90,63,14,14) = $true) { deccnum }
if ($inrect($1,$2,75,103,14,14) = $true) { ir $3 } | if ($inrect($1,$2,90,103,14,14) = $true) { dr $3 }
if ($inrect($1,$2,75,123,14,14) = $true) { ig $3 } | if ($inrect($1,$2,90,123,14,14) = $true) { dg $3 }
if ($inrect($1,$2,75,143,14,14) = $true) { ib $3 } | if ($inrect($1,$2,90,143,14,14) = $true) { db $3 }
}
alias ervxy if (($1 < 11) || ($2 < 31) || ($1 > $calc((550 - $3) - 1)) || ($2 > $calc((270 - $3) - 1))) { return $false } | else { return $true }
alias chcn clearbox $wcew 10 60 60 17 | drawtext $wcew 1 arial 15 13 62 $1
alias chr clearbox $wcew 28 100 42 17 | drawtext $wcew 1 arial 15 31 102 $1
alias chg clearbox $wcew 28 120 42 17 | drawtext $wcew 1 arial 15 31 122 $1
alias chb clearbox $wcew 28 140 42 17 | drawtext $wcew 1 arial 15 31 142 $1
alias ir inc %w.cer $1 | if (%w.cer > 255) { dec %w.cer $1 | return } | %t = $rgb(%w.cer,%w.ceb,%w.ceg) | dochclr %t
alias dr dec %w.cer $1 | if (%w.cer < 0) { inc %w.cer $1 | return } | %t = $rgb(%w.cer,%w.ceb,%w.ceg) | dochclr %t
alias ig inc %w.ceb $1 | if (%w.ceb > 255) { dec %w.ceb $1 | return } | %t = $rgb(%w.cer,%w.ceb,%w.ceg) | dochclr %t
alias dg dec %w.ceb $1 | if (%w.ceb < 0) { inc %w.ceb $1 | return } | %t = $rgb(%w.cer,%w.ceb,%w.ceg) | dochclr %t
alias ib inc %w.ceg $1 | if (%w.ceg > 255) { dec %w.ceg $1 | return } | %t = $rgb(%w.cer,%w.ceb,%w.ceg) | dochclr %t
alias db dec %w.ceg $1 | if (%w.ceg < 0) { inc %w.ceg $1 | return } | %t = $rgb(%w.cer,%w.ceb,%w.ceg) | dochclr %t
alias inccnum inc %w.cec | if (%w.cec > 22) { dec %w.cec | return } | chcn %w.cec | dochclr
alias deccnum dec %w.cec | if (%w.cec < 0) { inc %w.cec | return } | chcn %w.cec | dochclr
alias dochclr {
if ($1 = $null) { %w.ceclr = $readini $scriptdirwboard.ini Whiteboard_Current_Colors %w.cec }
else { %w.ceclr = $1 }
%w.ceclrgb = $rgb(%w.ceclr) | %w.cer = $gettok(%w.ceclrgb,1,44) | %w.ceb = $gettok(%w.ceclrgb,2,44) | %w.ceg = $gettok(%w.ceclrgb,3,44)
drawrect -fr $wcew %w.ceclr 1 11 11 81 38
chr %w.cer | chg %w.ceb | chb %w.ceg
}
alias wgetclr {
%i = -1 | :next | inc %i | if (%i > 22) { return $false }
%read = $readini $scriptdirwboard.ini Whiteboard_Current_Colors %i
if (%read = $1) { return %i } | goto next
}
alias drawclr {
%clron = -1 | %y = 275 | :drawclr | %iD = -35 | :nextD | if (%iD > 425) { if (%y = 275) {
%y = 300 | goto drawclr } | drawpic -c $w 512 285 $scriptdiricon1.bmp
return
}
inc %clron | inc %iD 45 | drawrect $w 1 1 %iD %y 45 25 | %iDT = $calc(%iD + 1) | %yT = $calc(%y + 1) | %clr = $readini $scriptdirwboard.ini Whiteboard_Current_Colors %clron
if ((%clr = $null) || ($len(%clr) < 1)) { goto endD } | drawrect -fr $w %clr 1 %idT %yT 44 24 | goto nextD
}
alias wcwin {
if ($window(@Whiteboard Chat).x = $null) {
window -e @Whiteboard Chat 50 50 300 400
%i = 0 | :next | inc %i | if (%i > $lines($scriptdirwbchat.cac)) { goto done } | %line = -l $+ %i
%read = $read %line $scriptdirwbchat.cac | aline -hp @Whiteboard Chat %read | goto next
:done | write -c $scriptdirwbchat.cac | return
}
else { window -r @Whiteboard Chat }
}
alias swchat sockwrite -n whiteboard [chat-004] $me : $+ $1- | aline -hp @Whiteboard Chat < $+ $me $+ > $1-
alias gwchat {
if ($window(@Whiteboard Chat).x = $null) {
write $scriptdirwbchat.cac < $+ $sock(whiteboard).mark $+ > $right($2-,$calc($len($2-) - 1))
drawtext -o $w 4 Linedraw 12 323 9 Chat Window | return
}
aline -hp @Whiteboard Chat < $+ $sock(whiteboard).mark $+ > $right($2-,$calc($len($2-) - 1))
}
on 1:INPUT:@Whiteboard Chat:if ($left($1-,1) = /) { $1- | halt } | swchat $1- | halt
alias gpwin {
window -p @Recieving Picture 100 100 150 200
drawtext -o @Recieving Picture 2 arial 20 30 10 Recieving
drawtext -o @Recieving Picture 2 arial 20 40 30 Picture
drawtext @Recieving Picture 1 arial 15 5 55 Name:
drawrect @Recieving Picture 1 1 45 55 90 17
drawtext @Recieving Picture 1 arial 15 49 57 $1
drawtext @Recieving Picture 1 arial 15 5 75 Size:
drawrect @Recieving Picture 1 1 45 75 90 17
drawtext @Recieving Picture 1 arial 15 49 77 $size1($2)
drawtext @Recieving Picture 1 arial 15 5 95 Rcvd:
drawrect @Recieving Picture 1 1 45 95 90 17
drawtext @Recieving Picture 1 arial 15 49 97 0
drawrect @Recieving Picture 1 1 20 125 100 20
drawtext @Recieving Picture 1 arial 15 5 150 Percent Complete:
%w.gp.lp = 0 | %w.gp.lx = 20 | %l.added = 0
}
alias updgpwin {
clearbox @Recieving Picture 45 95 90 17
drawtext @Recieving Picture 1 arial 15 49 97 $1
%perc = $round($perc($1,$2),0) | %addlines = $calc(%perc - %w.gp.lp) | %w.gp.lx2 = %w.gp.lx
:next | inc %w.gp.lx | if (%w.gp.lx > $calc(%w.gp.lx2 + %addlines)) { dec %w.gp.lx | goto afbar }
drawline @Recieving Picture 2 1 %w.gp.lx 126 %w.gp.lx 145 | goto next
:afbar | drawrect -f @Recieving Picture 0 1 109 149 100 100 | drawtext @Recieving Picture 1 arial 15 110 150 $round(%perc,0) $+ $chr(37) | %w.gp.lp = $round(%perc,0)
}
alias chfond clearbox $w 560 260 35 17 | drawtext $w 1 arial 15 563 262 %w.txt.size
alias clearbox drawrect -f $1 0 1 $2 $3 $4 $5 | drawrect $1 1 1 $2 $3 $4 $5
alias clearbox1 drawrect -f $1 0 1 $2 $3 $4 $5
alias clearbox2 drawrect $1 1 1 $2 $3 $4 $5
alias btn {
%rectw = $calc($4 - 1) | %recth = $calc($5 - 1)
drawrect -rf $1 $rgb(192,192,192) 1 $2 $3 %rectw %recth
%line1x = $calc($2 + 1) | %line1y = $calc($3 + %recth + 1)
%line1ex = $calc($2 + $4) | drawline $1 1 1 %line1x %line1y %line1ex %line1y
%line2x = $calc($2 + $4) | %line2y = $calc($3 + 1)
%line2ey = $calc($3 + $5 + 1) | drawline $1 1 1 %line2x %line2y %line2x %line2ey
}
alias dialog {
if ($1 = INPUT) { window -hep +f $2 131 89 377 118 }
else { window -hp +f $2 131 89 377 118 }
drawrect -f $2 15 12 0 0 377 118
drawrect -f $2 2 12 0 0 377 17
drawrect -f $2 15 12 354 2 12 12
drawline $2 14 2 364 4 356 12
drawline $2 14 2 364 12 356 4
drawline $2 0 1 354 2 366 2
drawline $2 14 1 354 15 366 15
drawline $2 0 1 354 2 354 15
drawline $2 14 1 366 2 366 15
drawtext -o $2 0 Linedraw 15 3 1 $3-
drawpic $2 20 35 $scriptdiricon2.bmp
window -ar $2
if ($1 = YESNO) { btn $2 85 75 100 25 | btn $2 195 75 100 25 | drawtext -o $2 1 Linedraw 15 120 80 Yes | drawtext -o $2 1 Linedraw 15 235 80 No }
if ($1 = OK) { btn $2 135 75 100 25 | drawtext -o $2 1 Linedraw 15 175 80 Ok }
if ($1 = OKCANCEL) { btn $2 85 75 100 25 | btn $2 195 75 100 25 | drawtext -o $2 1 Linedraw 15 125 80 Ok | drawtext -o $2 1 Linedraw 15 225 80 Cancel }
}
alias size1 {
if ($1 < 1024) { return $1 bytes }
if (($1 >= 1024) && ($1 < 1024000)) { return $round($calc($1 / 1000),2) $+ kb }
if ($1 >= 1024000) { return $round($calc($1 / 1000000),2) $+ mb }
}
alias perc return $calc(($1 / $2) * 100))
on 1:LOAD:echo -a 4,0·1,0•[r4,0A1,0va4,0G1,0e]•4,0· 2mIRC Whiteboard LOADED! 4Running $scriptdirwboard.txt. PLEASE read it. | run $scriptdirwboard.txt
;-EOF