Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Arrange Windows when opened  (Read 7456 times)

0 Members and 1 Guest are viewing this topic.

Lemonilla

    Topic Starter


    Apprentice

  • "Too sweet"
  • Thanked: 70
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Arrange Windows when opened
« on: August 23, 2012, 07:56:04 PM »
Is there a way to arrange the windows started using a batch file? so instead of opening them all on top of each other in a big heap, have them spread out to cover the screen (or make a square) with no overlaying. If so how would you do that?

I am trying to open Resource Monitor, Task Manager, and SpeedFan

Code: [Select]
cd C:\Program Files\SpeedFan
start speedfan.exe

resmon
taskmgr

exit
This opens them all on top of each other.
Quote from: patio
God Bless the DOS Helpers...
Quote
If it compiles, send the files.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: Arrange Windows when opened
« Reply #1 on: August 23, 2012, 10:58:06 PM »
Try this.  The 8 in the ping command is to wait ~8 seconds until all programs are loaded before tiling.

Code: [Select]
::TileSideBySide.cmd by Todd Vargo
@echo off
call :Min >"%temp%.\tmp.vbs"
cscript /nologo "%temp%.\tmp.vbs"
start www.google.com
start notepad.exe
start taskmgr
start resmon
ping -n 8 127.0.0.1
call :Tile >"%temp%.\tmp.vbs"
cscript /nologo "%temp%.\tmp.vbs"
del "%temp%.\tmp.vbs"
goto :eof

:Min
echo CreateObject("shell.application").MinimizeAll
goto :eof

:Tile
echo CreateObject("shell.application").TileVertically
goto :eof

Lemonilla

    Topic Starter


    Apprentice

  • "Too sweet"
  • Thanked: 70
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Arrange Windows when opened
« Reply #2 on: August 24, 2012, 11:24:06 AM »
the only problem I'm running into is that it's arranging them off screen, so the bottom half of taskmgr is off the bottom of the screen.
Quote from: patio
God Bless the DOS Helpers...
Quote
If it compiles, send the files.

foxidrive



    Specialist
  • Thanked: 268
  • Experience: Experienced
  • OS: Windows 8
Re: Arrange Windows when opened
« Reply #3 on: August 24, 2012, 06:47:16 PM »
It doesn't do that here.

Is it only task manager that this happens with?

Lemonilla

    Topic Starter


    Apprentice

  • "Too sweet"
  • Thanked: 70
  • Computer: Specs
  • Experience: Experienced
  • OS: Windows 7
Re: Arrange Windows when opened
« Reply #4 on: August 25, 2012, 05:47:50 AM »
And speedFan, whichever one gets the bottom left corner. I think the problem may be that speedFan doesn't support resizing.
Quote from: patio
God Bless the DOS Helpers...
Quote
If it compiles, send the files.