Solved

vbs to launch applications on specific monitor

Posted on 2014-10-04
5
102 Views
Last Modified: 2015-04-24
I have a script that launchs 4 applications, each of which monitors that status of different Printer rips. I have a  4 monitor windows 8 configuration. I need to be able to specify which monitor each of the applications is launched to.

I have no issue launching from a BAT file as opposed to a script, either will work just need to specify the monitor.

Thanks
0
Comment
Question by:panhead802
  • 2
5 Comments
 
LVL 68

Expert Comment

by:Qlemo
ID: 40361321
Commercial solutions are available to provide you with the means to easily to do that (e.g. rules based on application or window title). One I'm happy with is Actual Multiple Monitors.

If you want to do it yourself but without programming. I recommend to use cmdow. You will always need the window coordinates of each screen, even if using PowerShell / VBS or whatever, but I guess that's no issue here.
0
 
LVL 15

Expert Comment

by:WalkaboutTigger
ID: 40361361
I would recommend AutoHotKey.
The documentation for it can be found here.
I would specifically recommend looking at the run, RunAs, WinWait, WinMove, and WinSet.

This will allow you to run external programs, wait for the window to appear and then, if necessary, move the window to the appropriate location on the monitor(s) and set the title of that window.
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 40742180
I've requested that this question be closed as follows:

Accepted answer: 250 points for Qlemo's comment #a40361321
Assisted answer: 250 points for WalkaboutTigger's comment #a40361361

for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 
LVL 15

Accepted Solution

by:
WalkaboutTigger earned 500 total points
ID: 40738488
I do just want to point out there is also UltraMon available  here.

It is $40 for a license, but it allows the creation of shortcuts with positioning on both a specific monitor as well as at a specific location.  You may be able to script it via a batch file by using the format

@echo off
CD %UserProfile%\Desktop
.\"Name of shortcut with spaces.lnk"
.\ShortcutWithNoSpaces.lnk"
.\"Yet another shortcut.lnk"
.\FinalShortcutToStart.lnk

Open in new window


With UltraMon, these will place the programs where you configured the shortcut to place them.

I hope this helps.

WT
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now