Window Reposition

 

Use this command to position program windows anywhere on the screen.

 

 

Script Editor > Expand Windows/Programs Category > Window Reposition

 

 

Choose a window

Choose from the drop down list whether to reposition the current window or a specific window.

 

Use the Current Window

Use the Current Window refers to the window that has focus when the Window Reposition command runs during macro playback. Whichever window is on top and has focus when the command runs will be repositioned.

 

Specific Window

Enter the title of the specific window to reposition. Or click on the Browse button to see a list of all windows currently running. Select the window from the list to insert the name into the Window Title edit box.

 

Exact Match

This requires that the window name entered matches exactly with the name of the window waiting to receive focus. For example, if listing Notepad as the window name, but the actual window title is Notepad - Untitled, then the macro would not wait.

 

Partial Match

The Partial Match option does not require an exact window title match. For example, if waiting for a notepad window, inserting "notepad" or "notep" as the window title will find the window. This is particularly useful as some Window Titles change based on whether a given file is open. Case sensitivity is not required. For example, "NOTepad" will work as well as "notepad".

 

The Title contains Wildcards

Select this option if a wildcard is included in the window title name. A wildcard uses the " * " or " ? " characters in the title to expand the possibilities of a match. These are similar to the wildcards used in Windows for searches.

 

 


 

 

Choose a Method to Reposition the Window

Twelve reposition options are available. Nine of these options are essentially self-explanatory. Clicking on the Center of Screen option places the window in the center of the screen. The Move to Top Left command moves the window to the top left corner of the screen, etc. We'll discuss the other three choices below.

 

Specify Exact Location

This option places the window anywhere on the screen based on the coordinates that you provide. Enter the coordinates for positioning the window in the Left and Top edit fields.

 

 

Specify Exact Location Example

 

Left    -    100

Top    -    200

 

With the above coordinates, the left edge of the window is positioned 100 pixels to the right of the left side of the screen. The top edge of the window is positioned 200 pixels down from the top of the screen.

 

 

Move in Pixels Relative to the Current Location

This option moves the window a fixed number of pixels away from the current location of the window. Insert the number of pixels in the left and top boxes when using the Value option. Or insert integer variables in these fields. Negative numbers (place a " -" sign  before the number) move the window to the left or up. Positive numbers move the window to the right or down.

 

 

Move In Pixels Example

 

Left    -    -150

Top    -     250

 

For this example, we'll assume the current window is positioned at left 400 and top 100.

 

Moving the window the number of pixels we have listed above, positions the window at left 250 and top 350. The window moved to the left 150 pixels and down 250 pixels on the screen.

 

The left edge of the window is now positioned 250 pixels to the right of the left side of the screen. The top edge of the window is positioned 350 pixels down from the top of the screen.

 

 

Move in Percent Relative to the Current Location

This option moves the window proportionally, on a percentage basis. Insert the percent change in the left and top boxes when using the Value option. Or insert integer variables in these fields. Negative numbers (place a " -" sign  before the number) move the window up or to the left. Positive numbers move the window down or to the right.

 

 

Move In Percent Example

 

Left    -    -10

Top    -     25

 

For this example, we'll assume the current window is positioned at left 400 and top 500.

 

Using the values we input above, the negative 10 value moves the window to the left 10% of the available screen distance.

 

The positive 25 value moves the window down 25% of the available distance towards the bottom of the screen.