Jump to content

Simple script to launch a few programs and position their window and size on the correct display


Recommended Posts

So I want to write basically a start-up script to start up Task Manager, Resource Manager, Core Temp, and MSI Afterburner on my secondary display.

I remember back in the old XP days there was a Window menu and you could tell it to remember the size and position (or maybe that Win98?)

Anyways, I'm not sure which language to implement this.

The way I see it I can use:

- Windows Batch script (.bat)

- VBscript (.vbs) - I know this may be considered outdated but it's still very useful and can do the simple task I need

- Powershell

- .NET (probably overkill but listing anyways)

And I'm sure there's more options I haven't listed.

If there is a "preferred" or "best-practice" choice I would like to know

Or if you just have suggestions or comments please leave a remark below!

I have same basic experience in all the above languages so that's not a factor.

RIght now I am considering writing the same script with the first 3 languages and noting my opinions/observations.

Edited by sb0
Reworded for clarity and format changes.
Link to comment
Share on other sites


Possibly the simplest would be plain batch using nircmd:

https://www.nirsoft.net/utils/nircmd.html

should have all the commands you need.

Probably next (what I would use, mind you not necessarily the best idea) would be either AutoIt or AutoHotKey, as AFAICR they have many easy functions to manage wiindows. 

This exists (written in AutoHotKey, source included):

https://sourceforge.net/projects/winsize2/

But I think there are many more "dedicated" freewares/low cost sharewares for this, though finding one with all the features you want may take some time, as I think many are single display only, anyway a couple ones:

https://www.displayfusion.com/

https://toddnelson.net/ https://github.com/Todd1561/TANWindowMgr

jaclaz

 

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...