Your question

App or a Script to open programs in fixed size

  • Windows
  • Streaming
  • Shell Script
  • Internet Applications
Last response: in Apps General Discussion
March 13, 2018 6:24:08 AM

So e.g. when I'm streaming or doing something else I usually have a way how I wan't windows to be laid out. Is there anyway of doing this?

Here is an example what I want when I stream:

More about : app script open programs fixed size

Best solution

March 16, 2018 1:58:30 PM

Hi, this can be done with AutoHotKey. Download it from the blue/white button here: and install it. In order for AHK to work, you will need to provide it a script. Scripts can be created in Notepad and save the file with an .ahk file extension. For example: MyScript.ahk

I don't have the same software installed that you do so I can't create the exact script for you, however I will show you an example that I think you can work with (depending on your level of computer knowledge).

I created a script that opens Notepad, 7-Zip, and 2 tabs in Edge. I had some trouble with the WinMove function but eventually got it figured out and I left plenty of comments in my script which may help you out. Here is the script that I created:

SetTitleMatchMode, 2

; Run your programs here, Edge will open with 2 tabs open.
Run, C:\program files\7-zip\7zfm.exe
Run, notepad.exe
Run, microsoft-edge:
Run, microsoft-edge:

; Notepad - Activate it and set it Window position and size.
Sleep, 200
WinActivate, Notepad
Sleep, 200
WinMove, A, , 1, 1, 400, 400

; 7-Zip File Manager
; If the Window won't move as normal, find it's PID and move it that way.
; Info from:
Sleep, 200
Process, exist, 7ZFM.exe
WinMove, ahk_pid %errorlevel%,, 1, 401, 400, 320

; Edge
; Sometimes AHK can't find a Window by it's title so you can use it's
; classname. See the WinSpy program included with AutoHotKey to find
; out the classname of Windows.
Sleep, 200
WinActivate, ahk_class ApplicationFrameWindow
Sleep, 200
WinMove, ahk_class ApplicationFrameWindow,, 401, 1, 620, 720

And here are the results of running the script:

Tip: After you have created your script, you can "convert" it to an EXE file by right clicking on it and choosing Compile Script. Afterwards, the .ahk file is no longer needed. You can even run the MyScript.exe if AutoHotKey is not installed.

If you try this you will likely have to experiment with it and change things around. Good luck.
Tom’s guide in the world
  • Germany
  • France
  • Italy
  • Ireland
  • UK
Follow Tom’s guide
Subscribe to our newsletter
  • add to twitter
  • add to facebook
  • ajouter un flux RSS