Jump to content

Recommended Posts

Posted

Hi folks...

I have a problem similar to WoodGrain:

However - even the solution posted by @VIP doesn't  seem to work on Task Manager.

I can get the correct handle and activate the Window  with WinActivate(), but the WinMove() right after doesn't work.

Is the Task Manager special and not moveable by AutoIt?

Using v3.3.6.1 and Windows 10 (1803)

Thanks!

Posted

Updated to latest v3.3.14.5 to be sure - still the same problem.

Here's the code (provided by @VIP):

Local $aList = WinList()
For $i = 1 To $aList[0][0]
    If $aList[$i][0] <> "" And BitAND(WinGetState($aList[$i][1]), 2) Then
        If StringInStr($aList[$i][0], "Task Manager") Or StringInStr($aList[$i][0], "TaskManagerWindow") Or StringInStr($aList[$i][0], "Windows Task Manager") Or StringInStr($aList[$i][0], "TaskManagerMain") Or StringInStr($aList[$i][0], "Task") Then
            WinActivate($aList[$i][0])
            ;WinWait($aList[$i][0])
            WinMove($aList[$i][0],"",1700,0,800,800)
            WinMove($aList[$i][0],"",1700,0,800,800)
            ;ConsoleWrite("Title: " & $aList[$i][0] & @CRLF & "Handle: " & $aList[$i][1] & @CRLF)
        EndIf
    EndIf
Next

 

Posted

Crack01,

welcome to autoitscript forums

To automate tasks and windows that are running as admin you need admin privileges So simply try again with placing  #RequireAdmin at the top of your script ..

Deye

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
×
×
  • Create New...