Tuesday, February 9, 2016

Move the MDT Progress Bar out of the way

Sometime ago I had a problem with a dialog I was creating in my Task Sequences being covered up  by the Task Sequence Progress bar.  Back then I was able to find a simple AutoIT script which would automatically move the Progress bar out of the way.

Alas as with many things on the internet it has disappeared from the Net, plenty of pointers to the script. However the location of the actual script no longer exists.  So having a copy I thought I'd do the world a favor and give it a new home.

Progressmove.au3:

#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Compile_Both=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;zCFG-MoveTaskWindow
;Version 2.0 March 2008
;Reruns itself and returns - only works when compiled
If $CmdLine[0] = 0 Then
    ; Rerun ourself and let this copy return to the task sequencer
    Run('"' & @AutoItExe & '" rerun')
    Exit
EndIf
Sleep(5000)        ; Time for the first script to return
If WinExists("Installation Progress") Then
    $size = WinGetPos("Installation Progress")
    Mousemove($size[0]+50, $size[1]+50)
    MouseClick("left")
    WinMove("Installation Progress", "", 0, 0)
    Exit
Else
    Exit
EndIf

I claim no rights or authorship to the script, just trying to help out since the original location seems to have disappeared.

1 comment:

verakot said...

How do you use it and how? Does this need to be added to some script??