mIRC Home    About    Download    Register    News    Help

Print Thread
#10125 07/02/03 04:23 PM
Joined: Jan 2003
Posts: 40
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2003
Posts: 40
alias windos {

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

}

can i do this

#10126 07/02/03 04:32 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
If you want to draw in a picWin, include the -p switch when you create the window.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#10127 07/02/03 10:22 PM
Joined: Jan 2003
Posts: 40
V
Ameglian cow
OP Offline
Ameglian cow
V
Joined: Jan 2003
Posts: 40
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



#10128 07/02/03 10:39 PM
Joined: Dec 2002
Posts: 29
R
Ameglian cow
Offline
Ameglian cow
R
Joined: Dec 2002
Posts: 29
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.


Link Copied to Clipboard