Hay ich hab mal nä Frage wenn z.b. program.exe öffen ist das man nicht cmd öffnen kann? also wenn program.exe gestartet ist cmd verbietet
If ProcessExists("Programm.exe") Then
while 1
if WinExists("cmd") Then
WinClose("cmd")
endif
wend
EndIf
If ProcessExists("Programm.exe") Then
while 1
if ProcessExists("cmd.exe") Then
ProcessClose("cmd.exe")
endif
wend
EndIf