Jump to content

Recommended Posts

Posted (edited)

            
My code is below. I am trying to move my HD window using the below code however it only does it occasionally.

The app always goes active but only sometimes moves the window to the right position

I never get a popup that the window is not open either so I know it is able to find it by the title... does anyone know what could be going on? 

Quote

 

If ProcessExists("HD.exe") Then
    _WriteLineToLog("Only one HD process can run at a time.")
    WinActivate("HD App")

$oBlah = WinGetHandle("HD App")

If WinExists($oBlah) Then
    WinActivate($oBlah)
    WinMove($oBlah, "", 0, 0, 10, 10)
Else
    MsgBox("0", "No HD window", "Please open HD")
EndIf

 

 

 

 

Edited by Nick3399
Posted
8 minutes ago, Werty said:

Try with a WinWaitActive() before the winmove.

Tried that as well 😕 the script definitely finds the window because it doesn’t send a message and makes it active

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...