Jump to content

Resize Windows Explorer


Recommended Posts

I am new to AutoIt. I spent a little time giving it a test spin. I am able to move and resize Notepad, but for the life of me, I cannot do the same with Windows Explorer. Anyone know how to write a script to move and resize Windows Explorer? Any help would be most appreciated.

Link to comment
Share on other sites

Since the title can be different, here is something generic that will move a random open explorer window (It's really not random, but I don't feel like explaining how it picks the window...)

It uses the classname for Explorer (On Windows XP at least...) to move it.

Opt("WinTitleMatchMode", 4); Can use classname=
$szTitle = "classname=CabinetWClass"

WinMove($szTitle, "", 0, 0)
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...