Giter Site home page Giter Site logo

arrange-windows's Introduction

#README ###Author: Steven B. ###September 2014

I own three monitors and commonly leave iTunes, CPU-Z, CPUID Hardware Monitor, Mumble (with it's Connect window open) and the Windows Resource Monitor open on my left screen. I got tired of constantly reopening and arranging all these windows into their normal positions so I wrote this script to do it for me.

The script begins by looking through the open processes list to see if the programs in question are running. If they aren't it will start any that are missing. Then if it needed to start one of the programs, it will wait for 10 seconds for the program to launch and load, then it will do the rearrangement. If it did not launch any programs (they are all already running) then the script skips the waiting and does the rearrangement immedietly.

I fought with Window's UAC for a little bit becuase although normally HWM, CPUZ, and Resource Monitor all require Admin rights to run, launching the script from an elevated command prompt was no issue for these programs. Counter-intuitively Mumble was having issue being started if it wasn't already running, claiming it needed elevated priviledge.

To avoid this, I created a shortcut that launches a copy of the Python.exe set to run as admin with the script passed as an argument. This seemed to solve all issues and the script has the priviledge to launch all of the processes in question if necessary as well as to move the windows to their proper places.

arrange-windows's People

Contributors

geraden07 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.