in der IDE ist alles OK.
Nur wenn ich das compilierte Programm unter W10 beenden will wird es ein weiteres mal gestartet.
Am Ende habe ich zwei oder noch mehr Fenster offen.

Danke
Code: Alles auswählen
OpenConsole()
ConsoleTitle ("PureBasic (x32) - USB Example")
PrintN("Zum Beenden Any-Key Drücken, :)")
Input()
CloseConsole()
End
Code: Alles auswählen
SetWindowPos_(FindWindow_("TEST",#Null),#HWND_TOPMOST,0,0,0,0,#SWP_NOMOVE|#SWP_NOSIZE)
Konflikt mit doppeltem Öffnen der RS232 verhindern ? Bzw. andere Programme könnten ja die Kommunikation2. Es wird ein doppelstart verhindert