SIZE
(Copy URL in PhpBB Forum Format - Info)From iMacros
Resizes the iMacros Browser Window. This command does not work when iMacros is -silent or -tray mode. In Internet Explorer this command is ignored.
Contents |
Syntax

SIZE X=n Y=m
The size command is only required if you use a DirectScreen command with fixed coordinates. It is not required for normal HTML websites or if you use Image Recognition.
Parameters
- X
- Specifies the new width of the iMacros Browser window in pixel.
- Y
- Specifies the new height of the iMacros Browser window in pixel.
Examples
When using DS the size of the browser window is essential for the success of the command. If the window is resized between recording and replaying the macro the DS command might fail, because the position of the element which is to be clicked has moved. Therefore, it is advisable (especially when you distribute your macros) to add a SIZE command before all DS commands, so that potential window resizing by the user is undone.
SIZE X=800 Y=600 DS CMD=CLICK X=234 Y=42 CONTENT=Hello<SP>World!
Note: iMacros for Firefox does not support the SIZE command, but with Firefox you can use
URL GOTO=javascript:window.resizeTo(1200,979);
This "trick" works only if the Firefox browser resizing via Javascript is not disabled in the Firefox settings.
