Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Excessive processor usage, maybe someone can tell me why?

$
0
0

I'm running the following script to assist with a Selenium QA project:

While true     WinWait("Authentication Required")     If WinExists("Authentication Required") Then         WinActivate("Authentication Required")         If WinActive("Authentication Required") Then             Send("username{TAB}")             Send("password{Enter}")         EndIf     EndIf     Sleep(1000) WEnd

Can anybody see why this eventually crashes? It slowly creeps up on CPU usage until it maxes out one core and becomes unresponsive.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>