Jump to content

Resize window


Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...