Solved

vbs to launch applications on specific monitor

Posted on 2014-10-04
5
123 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 69

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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