folgende Problemstellung:
ich starte mit einem kleinen Programm 3 programme. Wenn Programm 1 geschlossen wird muss ich kontrollieren ob der Rekorder im aktiven Fenster ist ( also ob der Arzt gerade noch an einem Diktat arbeitet ) und dann auch die anderen beiden schließen ansonsten muss ich solange warten bis der Rekorder nicht mehr im aktiven Fenster ist.
Code
#include <process.au3>
$file = "C:\Windows\System32\Notepad.exe"
$pidGAPIT = Run($file, "", @SW_HIDE) ;@SW_HIDE, @SW_MINIMIZE
$pidBIL = Run('"C:\Program Files (x86)\SMSB\bil.exe" /GUEST', "", @SW_MINIMIZE)
$pidEASY = Run('"C:\Program Files (x86)\SMSB\Easy.exe" /GUEST', "", @SW_MINIMIZE)
while ( ProcessExists( $pidGAPIT ) > 0 )
sleep(50)
WEnd
;ProcessClose("bil.exe")
;Local $PID = ProcessExists("bil.exe") ; Will return the PID or 0 if the process isn't found.
;If $PID Then ProcessClose($PID)
Alles anzeigen