Hallo miteinander,
ich habe das unten stehende kleine Anfänger-Quick-and-Dirty-Skript erstellt und gestartet. Grundsätzlich macht es auch das, was es soll, nämlich auf dieses unnötige Win10-Appstor-Fenster warten und es sodann automatisiert schließen.
Mir ist jetzt lediglich im Prozessmonitor aufgefallen, dass dieses ständig in einer Endlos-Schleife laufende Skript ca. 2 bis 3 Prozent CPU-Leistung benötigt, und wollte mal fragen, ob das bei so einem Endlos-Schleifen-Skript ganz normal ist? Oder ob es hier noch Optimierungsmöglichkeiten gibt, dass diese ständige CPU-Belastung nicht oder nur in geringerem Maße auftritt, die Funktion aber dennoch gewährleistet ist?
Besten Dank im Voraus für sachdienliche Hinweis.
AutoIt
AutoItSetOption ( "WinTitleMatchMode" , 2 )
Close_Appstore_Frage()
Func Close_Appstore_Frage()
While 1 = 1
WinWait("App im Store suchen?")
; Wait for 0,2 seconds to display the window.
Sleep(200)
; Close the window using the Title.
WinClose("App im Store suchen?")
Wend
EndFunc ;==>Close_Appstore_Frage
Alles anzeigen