[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 8895
  • Last Modified:

Shortcut to move Application Window between dual Monitors

My PC has dual monitors. To move a maximized application window (eg MS WOrd) from one monitor to the other, I have to:
- set size to Normal
- drag to the other monitor
- set size to Maximize.

Is there an automatic way to do this, either via something built-in to Windows or via a customized batch file, etc?
0
Milewskp
Asked:
Milewskp
  • 4
  • 3
  • 2
2 Solutions
 
KromptonCommented:
You could try Recording a Macro in Word, perform the move manually then stop recording and look at the code by pressing Alt+F11. You should see something like the following:
    Application.WindowState = wdWindowStateNormal
    Application.Move Left:=??, Top:=??
    Application.WindowState = wdWindowStateMaximize

I do not have any dual monitor machines to test this however.

Cheers
0
 
MilewskpAuthor Commented:
Thanks,
I'll try this, but I'm really looking for a Windows based solution that would work for all application and Explorer windows, not just for MS Word.
0
 
KromptonCommented:
Well if the macro option works then maybe one of the programming gurus would be able to convert it into a small executable that you could then add to the context menu.
I'm sure what you want is "do-able" and this was just the first way that came to my mind.

Good luck.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
SysExpertCommented:
auto-it Free scripting tool, keyboard macros  and compiled exe files

http://www.autoitscript.com/autoit3/

I hope this helps !
0
 
MilewskpAuthor Commented:
Thanks SysExpert, AutoIt looks interesting, but also looks it will take me some time to learn.

Can anyone provide an immediate solution (ie the scripts I need)?
0
 
SysExpertCommented:
Auto-it should also include a macro recorder that creates an auto-it script automatically.

Then you can just edit it and compile if you want, and you are done.

Also check the forums out.

I hope this helps !
0
 
MilewskpAuthor Commented:
Sweet. I'll try it.
0
 
MilewskpAuthor Commented:
I'll split the points between Krompton and SysExpert: Krompton's solution will work for now, until I have time to try AutoIt.
Thanks to you both!
0
 
KromptonCommented:
FYI. The AutoIt macro recorder, at least used to be, a seperate download. But it does work with a bit of modifying to ensure it does what you need it too. In fact I created a startup program using this tool. But to enable robustness you need to refine any recorded macro. This is particularly true if there are any mouse moves/clicks needed. But it is a very useful app.

Good luck with getting a solution more to your desire and thanks for the points.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now