etidd Posted September 2, 2023 Share Posted September 2, 2023 So, when I target an explorer window by title, the WinMove() function will not execute: Run("explorer.exe \n, E:\Internet Browser Data\Brave Data") WinMove("Brave Data", "", 464, 383) Run("explorer.exe \n, E:\Internet Browser Data\Brave Data") WinMove("[TITLE:Brave Data]", "", 464, 383) If I target the window as [ACTIVE], it will move the previously opened Explorer window. I wonder if that has to do with computer memory since I'm running a lot of programs. The AutoIt Window Info tool is crashing when I try to find out more. I'm stumped again. Link to comment Share on other sites More sharing options...
Andreik Posted September 2, 2023 Share Posted September 2, 2023 Try to set WinTitleMatchMode for partial search, just in case. AutoItSetOption('WinTitleMatchMode', 2) Run("explorer.exe \n, E:\Internet Browser Data\Brave Data") WinMove("Brave Data", "", 464, 383) Check if this works. Link to comment Share on other sites More sharing options...
etidd Posted September 2, 2023 Author Share Posted September 2, 2023 Nope, that didn't do anything this time. Reading up on the options I can change using AutoItSetOption(). Link to comment Share on other sites More sharing options...
Solution Andreik Posted September 2, 2023 Solution Share Posted September 2, 2023 (edited) Assuming that window is created by your Run() function above maybe you need to wait until the window is created. AutoItSetOption('WinTitleMatchMode', 2) Run("explorer.exe \n, E:\Internet Browser Data\Brave Data") WinWait("Brave Data") WinMove("Brave Data", "", 464, 383) or list all windows in console and find the exact name of yours $aWinList = WinList() If IsArray($aWinList) Then For $Index = 1 To $aWinList[0][0] ConsoleWrite('Title: ' & $aWinList[$Index][0] & ' (Handle: ' & $aWinList[$Index][1] & ')' & @CRLF) Next EndIf Edited September 2, 2023 by Andreik etidd 1 Link to comment Share on other sites More sharing options...
etidd Posted September 3, 2023 Author Share Posted September 3, 2023 Ah, I figured this had to do with timing. I'm running quite a few processes on the PC as well. You're a genius. 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