Sign in to follow this  
Followers 0
PcExpert

Resize window

3 posts in this topic

#1 ·  Posted (edited)

Hi all,

I am trying to resize a Firefox 4 window on Windows 7 x64. But it doesn't work when using WinMove() like this:

WinMove("[firefox window name goes here]", -1, -1, 706, 728)

or this

WinMove("[firefox window name goes here]", Default, Default, 706, 728)

I also tried it with a Word 2010 window, but same results.

Hmm, MouseClickDrag() doesnt seem to work well either, it does work, but it drags at the wrongs coords. Though the coord mode is correct

Any ideas why this happens?

Thanks!

P.S.

I set '#RequireAdmin' in the script.

Edited by PcExpert

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Try

Run ( @ProgramFilesDir & "\Mozilla Firefox\firefox.exe" )
WinWaitActive ("[REGEXPCLASS:Mozilla]", "" )
$_FirefoxTitle = WinGetTitle ( "[CLASS:MozillaUIWindowClass;REGEXPTITLE:.*?(Mozilla Firefox|).*?]" )
WinMove ( $_FirefoxTitle, '', 0, 0, 200, 200 )
Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0