PcExpert Posted April 2, 2011 Share Posted April 2, 2011 (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 April 2, 2011 by PcExpert Link to comment Share on other sites More sharing options...
Rogue5099 Posted April 2, 2011 Share Posted April 2, 2011 (edited) WinSetState("Firefox", "", @SW_MAXIMIZE) Edited April 2, 2011 by rogue5099 My projects: Inventory / Mp3 Inventory, Computer Stats Link to comment Share on other sites More sharing options...
wakillon Posted April 4, 2011 Share Posted April 4, 2011 (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 April 4, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now