Control Screen Size

Discussions and Tech Support related to automating the iMacros Browser or Internet Explorer from any scripting and programming language, such as VBS (WSH), VBA, VB, Perl, Delphi, C# or C++.
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
shaves
Posts: 77
Joined: Tue Apr 29, 2008 6:50 pm

Control Screen Size

Post by shaves » Wed Nov 21, 2012 9:22 pm

I have used the following code in one of our iMacros successfully :

TAB T=1
TAB CLOSEALLOTHERS
SIZE X=1132 Y=883
FRAME F=1
SET !SINGLESTEP YES
DS CMD=CLICK X=146 Y=276 CONTENT=
DS CMD=CLICK X=394 Y=340 CONTENT=
DS CMD=CLICK X=395 Y=353 CONTENT=
DS CMD=CLICK X=504 Y=334 CONTENT=
DS CMD=CLICK X=504 Y=359 CONTENT=
DS CMD=CLICK X=613 Y=376 CONTENT=
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:win0 ATTR=ID:#ICSave

The problem is some users screen size is different (SIZE X=880 Y=584). When the second user tries to run the code above, it doesn't work because the screen size is different and the x / y coordinates are different.

Is there a way to control / change the SIZE coordinates with iMacros so every user's screen is the same size and the above code will work.

I was wondering if I could capture the size at the start of the macro, change it to a "standard" size, run the macro, and then change it back to the size that was captured at the beginning of the macro?

Thanks for your help....


Last bumped by shaves on Wed Nov 21, 2012 9:22 pm.
Post Reply