Window Resize

 

Three options are available for changing the size of a window - select a specific size in pixels, resize by a percentage or change the size by a set number of pixels. These options are described below.

 

 

 

Script Editor > Expand Windows/Programs Category > Window Resize

 

 

Choose a window

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

 

Current Window

Current window refers to the window that has focus when the resize command is run in the macro.

 

Specify a Window

Enter the title of the specific window that you want to resize. 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 of Resizing

Resize the selected window by using one of the three options listed in the drop down menu. The resizing methods are described below.

 

Specify Exact Size

The Specify Exact Size option sizes the window to specific dimensions. Insert the pixel values for the width and height of the window in the appropriate fields.  If 500 in entered in the width box and 400 in the height box, the window is resized to a width of 500 pixels and a height of 400 pixels during macro playback. Integer variables may also be used in the width and height fields.

 

Enlarge/Decrease in Pixels

This option enlarges or decreases the size of a window by a fixed number of pixels. Insert the number of pixels in the width and height boxes by which to increase or decrease the window size. Integer variables may also be used in the width and height fields.

 

Negative numbers (place a " -" sign  before the number) decrease the size of the window. Positive numbers increase the window size. In the example above, a window size is set to width 350 and height 700 pixels. Inserting values of width -100 and a height of 50 change the window size to width 250 and height 750 when the macro is run.

 

Enlarge/Decrease by Percent

This option enlarges or decreases the size of a window proportionally - on a percentage basis.  Insert the percentage values by which to increase or decrease the window size. Integer variables may also be used in the width and height fields.

 

Negative numbers (place a " -" sign  before the number) decrease the size of the window. Positive numbers increase the window size. In the first example, a window size is set to a size of width 500 and height 400 pixels. Inserting values of width -10 and a height of 25 will decrease the window width by 10% and increase the height by 25% when the macro is run.