What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How do you position your WoW windows and Bot Windows

Code:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Runtime.InteropServices;

namespace Resizer
{
	static class Program
	{
		static void Main()
		{
			System.Drawing.Rectangle screen = Screen.PrimaryScreen.WorkingArea;
			Process[] wows = Process.GetProcessesByName("Wow");
			int x = 0;
			int y = 0;
			int count = 0;

			foreach(Process p in wows)
			{
				MoveWindow(p.MainWindowHandle, ((screen.Right - screen.Right / 4) - x), ((screen.Bottom - screen.Bottom / 3) - y), (screen.Right / 4), (screen.Bottom / 3), true);
				count++;
				if(count % 4 == 0)
				{
					x = 0;
					y += screen.Bottom / 3;
				}
				else
				{
					x += screen.Right / 4;
				}
			}
		}

		[DllImport("user32.dll", SetLastError = true)]
		public static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint);
	}
}

Resizes windows relative to screen resolution so it's always in a 4x3 grid (since I have 3 PC's all with different resolutions).

That is impressive setup mate.
 
I use keyclone, one click and all my wow's open, all have same password so in less than 1 min Im logged into 8 wow's that is positioned in my right screen.
That is a good idea I might actually use that instead cause I remember i bought it.
 
Back
Top