WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Window Manipulation

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Window placement on multi monitor screen


Question:

Is is possible to load a program window in a specific monitor window on a multi-monitor system? I want to load a program through Winbatch and have the program show in a specific monitor.

How is WinPlace expected to behave when the multiple monitor environment uses different screen resolutions on the different monitors?

Answer:

Basically WinBatch regards the 0-999 as the virtual co-ordinates of the first window, and, assuming the second monitor is to the right, 1000 to 1999 as the horizontal co-ordinates of the second window.

THere is some fudging, as the size of the second monitor is assumed to be the same as the first. It works well when they are the same.


Question:

I am having a problem with this basic function -'message("title","text")' in that upon execution I cannot see the message box on the screen. It's almost as if it's "off screen" or minimized. The same happens with the command "AskYesNo", but does not happen with with "AskLine" or "Display". Any ideas? I am using winbatch 2004F.

Answer:

WinBatch has supported multi monitor systems since 2002 and I have been using it on multi monitor systems since that time. I can't say that I have ever seen the behavior you describe nor do I recall anyone reporting such behavior in the past.

There have been a few multi monitor bug fixes over the years but I know of none that effect the functions in question. The functions you are using should just default to displaying on the primary monitor.

There must be something unique about your setup that is causing this problem. It could have something to do with how secondary monitors are placed in relation to the primary monitor or perhaps a device driver problem.

You might try using IntControl 63 to change the positioning of the "ask" dialogs and report back any settings that make those dialogs viewable on your system.


Article ID:   W17311
File Created: 2007:11:09:10:28:42
Last Updated: 2007:11:09:10:28:42