ndo360 / codelinkv2

Automatically exported from code.google.com/p/codelinkv2
0 stars 0 forks source link

Request: Make batch file window coordinates relative to top-left corner of screen. #565

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Version: 2.0.9.8s
User: PartyFlava

The current window coordinate system makes it difficult to create reliable 
setups on machines with multiple monitors of different sizes. The current 
coordinate system has 0,0 somewhere near the center of the screen.

I propose the following changes:

  - Make the origin 0,0 at the top left corner of the screen.
  - Positive window coordinates position from the left/top edge of the screen.
  - Negative window coordinates position from the right/bottom edge of the screen.

This way, programs can be placed relative to the top/left/bottom/right of the 
screen independent of the screen size.

This does break existing scripts. There are a few options:
  - Let it break existing scripts, or
  - If file modification time is stored on server, run old batch files with current coordinate system, or
  - Add some way to specify that new coordinate system should be used, e.g. "program.run.10.300.200" uses current center-relative coordinate system but "program.run.10.@300.@200" uses new edge-relative coordinate system.

Original issue reported on code.google.com by jason.ci...@gmail.com on 28 Sep 2013 at 4:09