Hello, I took this (Post#8 in the thread): Cumulative Window lists (no duplicates) and "modified" it to: #include <Array.au3>
; Initialize tracking arrays
Global $avWinListPrevious[1][2] = [[0, ""]], $avWinListCurrent
; Monitor unique window handles
While 1
$avWinListCurrent = WinList("[REGEXPTITLE:.+[ \- ]GIMP]", "GNU Image Manipulation Program")
For $n = $avWinListCurrent[0][0] To 1 Step -1
; Check has title and visible
If ($avWinListCurrent[$n][0] <> "") And BitAND(WinGetState($avWinListCurrent[$n][1]), 2) Then
; Check for already seen
$fFound = False
For $i = 1 To $avWinListPrevious[0][0]
If $avWinListCurrent[$n][1] = $avWinListPrevious[$i][1] Then
$fFound = True
ExitLoop
EndIf
Next
; New window found
If Not $fFound Then
WinMove("[REGEXPTITLE:.+[ \- ]GIMP]", "GNU Image Manipulation Program", 169, 0, 893, 771 )
EndIf
Else
_ArrayDelete($avWinListCurrent, $n)
EndIf
Next
$avWinListCurrent[0][0] = UBound($avWinListCurrent) - 1
$avWinListPrevious = $avWinListCurrent
Sleep(500)
WEnd I don't want to write to any file (what the author wanted), but single (once) move every new opened window or file from the "GIMP"-program with the "WinMove"-function, so that it will be shown up on the screen at the function-setted position, as soon as the window or file is opened. Probably it would be better to use the "handle" of the new window in the "WinMove"-function instead of "TITLE" and "TEXT". But I don't know how to do this. The problem is that, if I open a GIMP-file from the program, it will be minimized to the taskbar. That's not wanted. If I click on the belonging taskbar-button, the window shows up, but the "WinMove"-function from the script doesn't work any more. I'm using GIMP with Windows XP. I'm sorry about my bad English Thanks in advance for Your help.