Giter VIP home page Giter VIP logo

windowsaver's Introduction

WindowSaver

An AutoHotkey Script
v0.1
Created by Daniel Kranich
Based on DockWin v0.3 by Paul Troiano

PGP Key-ID: 9313709B
Daniel Kranich (KroniK907)

###Description This is a script that can save the location and size of all of your windows and then restore those windows to their correct positions at a later time.

###Features

  • Specifically designed to work with Windows10 Virtual Desktops
    • Assigns a desktop to each window
    • Restores to the appropriate desktop
  • Works well with multiple monitors
  • Can save multiple layouts depending on monitor setup
    • If you switch between a single monitor and a dual screen setup, you can save a layout with each monitor setup
    • Restores the correct layout depending on number of monitors connected
  • Saves weather a window is maximized or minimized
  • Call from any ahk script

###Uses I use this script when I need to do a windows update or need to restart my computer for any reason. I can simply save my layout before shutdown and then when I have rebooted, I can re open all the programs I had running and hit a hotkey and have it all back the way it was before. I also have a laptop which I may or may not have connected to a secondary monitor. I can save a layout, with and without my second monitor and every time I switch I can hit a hotkey and have all my windows arranged the way I like.

###Installation Simple Install
Download WindowSaver.exe
The exe must be run with one of the two following paramaters

  • snap
    • Takes a snapshot of your current layout and saves the details to WinPos.txt
  • restore
    • Figures out which saved layout it should restore
    • Restores all windows to their appropriate places

Example:
"C:\path\to\exe\WindowSaver.exe snap"
"C:\path\to\exe\WindowSaver.exe restore"

Install With Source
Downlad the source .ahk files.
Use the same method as above but by calling your local AutoHotkey.exe

Example:
"C:\path\to\AutoHotkey.exe C:\path\to\WindowSaver.ahk snap"
"C:\path\to\AutoHotkey.exe C:\path\to\WindowSaver.ahk restore"

Set Up Hotkey
You can set up a hotkey using the following

key:: Run "C:\path\to\WindowSaver.exe" snap
key:: Run "C:\path\to\WindowSaver.exe" restore

or

key:: Run "C:\path\to\AutoHotkey.exe" "C:\path\to\WindowSaver.ahk" snap
key:: Run "C:\path\to\AutoHotkey.exe" "C:\path\to\WindowSaver.ahk" restore

windowsaver's People

Contributors

kronik907 avatar

Watchers

James Cloos avatar CyberSimon 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.