Jump to content

WinMove() - Window Titles Not Being Recognized


etidd
 Share

Go to solution Solved by Andreik,

Recommended Posts

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

Link to comment
Share on other sites

  • Solution

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