Mehdi Posted July 22, 2006 Share Posted July 22, 2006 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 More sharing options...
Mehdi Posted July 22, 2006 Author Share Posted July 22, 2006 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 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