MrBig
Member
- Joined
- Jan 25, 2010
- Messages
- 419
- Reaction score
- 5
Title says it all, how do you do it? (even if you dont multi-bot, you probably have a window placement scheme, so dont by shy).
If you can show us pictures or draw diagrams. If you use a mathematical formula, tell us too.
I will be using this information to better design BigSisters window placement options. Beeing placed on General Discution because it is a matter that is not limited to specific program.
Methods for automated placement I am using right now are based size and grouping. I put my WoW windows with a ratio of 1.30 (wide), that means that if my height is set to 100, my width will be 130. I also place my bot windows near the WoW windows they affect and in sight, so I can easily see what each bot is doing. Since I dont multi-bot for other than testing BigSister, I use alot of spacing, specially vertical "line-break like" style, I will put a wow window in each row with its corresponding bot window at its side.
Be creative
Hint: if you are a programmer and want to show us cool mathematical ways of positioning windows, you can try using Processing, and then showing us your work.
Tip: use doBox(x,y,width,height), val = min(val, minThreashold) and val = max(val, maxThreashold) to speed up the development
There is also a very cool map() function, but it can be very hard to debug later.
Sample Code below:
If you can show us pictures or draw diagrams. If you use a mathematical formula, tell us too.
I will be using this information to better design BigSisters window placement options. Beeing placed on General Discution because it is a matter that is not limited to specific program.
Methods for automated placement I am using right now are based size and grouping. I put my WoW windows with a ratio of 1.30 (wide), that means that if my height is set to 100, my width will be 130. I also place my bot windows near the WoW windows they affect and in sight, so I can easily see what each bot is doing. Since I dont multi-bot for other than testing BigSister, I use alot of spacing, specially vertical "line-break like" style, I will put a wow window in each row with its corresponding bot window at its side.
Be creative

Hint: if you are a programmer and want to show us cool mathematical ways of positioning windows, you can try using Processing, and then showing us your work.
Tip: use doBox(x,y,width,height), val = min(val, minThreashold) and val = max(val, maxThreashold) to speed up the development

Sample Code below:
Code:
float ratio = 1.30;
float margin = 10;
int boxSize = 100;
void setup() {
size(900, 600, P3D);
noStroke();
}
void doBox(int Width, int Height, int x, int y){
rect(x,y,Width,Height);
}
void doBox(float Width, float Height, float x, float y){
doBox((int)x,(int)y,(int)Width,(int)Height);
}
void draw() {
background(255);
fill(0);
doBox(100,100,mouseX,mouseY);
// your stuff here
// 9 windows, 3by3
doGrid(9,3,3);
}
void doGrid(int numberOfWindows, int maxColums, int maxRows){
int colums = 0;
int rows = 1;
// create 9 windows
for(int i=0; i<numberOfWindows; i++){
colums ++ ;
if(colums > maxColums){
colums = 1;
rows++;
}
if(rows > maxRows)
rows = 1;
float Width = boxSize*ratio;
float Height = boxSize;
float x = Width * colums;
float y = Height * rows;
println(Width+" by "+Height+" at x:"+x+ " y:"+y);
//do the margin
fill(155);
doBox(x,y,Width,Height);
fill(0);
doBox(x+2,y+2,Width-4,Height-4);
}
}
Last edited: