mIRC Homepage
Posted By: verdugo2000 draw a window Part II - 07/02/03 04:23 PM
alias windos {

.window -nck @window 200 200 200 200
.drawrect -ihnrfecd @window red 100 100 100 200 200

}

can i do this
Posted By: Hammer Re: draw a window Part II - 07/02/03 04:32 PM
If you want to draw in a picWin, include the -p switch when you create the window.
Posted By: verdugo2000 Re: draw a window Part II - 07/02/03 10:22 PM
alias windos {

.window -pnck @window 200 200 200 200
.drawrect -ihnrfecd @window red 100 100 100 200 200

}

but they didnt work please can you helpme


Posted By: RAIN Re: draw a window Part II - 07/02/03 10:39 PM
Ok this is simple example of how to use draw command in picture window.
alias test {
window -pk0 @draw 100 150 300 200
drawrect -r @draw $rgb(255,0,0) 0 10 10 80 20
drawrect -rf @draw $rgb(255,0,0) 0 100 10 80 20
}
What this alias does it will draw two rectangles one will be filled with red color.
drawrect -r means that you need to specify rgb color you want to use as i can see you want to use red color so rgb for red is $rgb(255,0,0)
0 is thicknes of lines used in draw command you need to specify this in order for draw to work ,it can be 1 or 2 etc.
10 10 are start position of the rectangle in window,this is in pixels
and 80 20 is width and high of the rectangle.
in another rectangle is -f switch is used witch means fill so rectangle will be filled with color.
i hope this helps for startup,you need to read mIRC help file about windows.
© mIRC Discussion Forums