The PID didn't work, even in my simple test file:
#include <Process.au3> Run("C:\Program Files\Windows NT\Accessories\wordpad.exe") WinWaitActive("Document", "") Local $pid = WinGetProcess("Document", "") Local $name = _ProcessGetName($pid) MsgBox(0, "Wordpad - ", $pid & " " & $name) ;WinMove($name, "", 600, 200, 400, 600) ; <<<< this didn't work WinMove("Document", "", 600, 200, 400, 600) ; only this works MsgBox(48, "Requested Action", "Is this it?") Exit
Can someone recommend how an AutoIt script can best get the absolute identity of an external window? ... in this case for moving it. And maybe even mention how [Class:NotePad] fits into all this?
Thanks in advance for any help.




