Jump to content

Window Handle


Recommended Posts

Suppose I have a few Windows Explorers windows open. With this line I open a new window:

Run("c:\windows\explorer.exe /e, C:", "", @SW_HIDE)

Then I want to move the new window to a specific location.

How do I get the handle to the newly opened window? I mean I need to do something like this:

$handle=WinGetHandle(Run("c:\windows\explorer.exe /e, C:"), "", @SW_HIDE)

WinMove($handle,"", 0, 0, 200, 200)

Is there a way of doing it?

Thanks

Link to comment
Share on other sites

Run() returns a PID... pass that pid to the processgetwin function here...

http://www.autoitscript.com/fileman/users/Helge/udfs.htm

Lar.

Thanks Larry. I think there is a typo in _ProcessGetHWnd.au3. Line 30 should read:

Local $aReturn[1][1] , $aWin = WinList($sTitle)

Anyways, how I can move/resize a window using $handle? WinMove uses window title.

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...