Toppy Posted April 30, 2005 Posted April 30, 2005 Hi, is it normal for the script below to soup up all CPU cycles ? Global $Paused HotKeySet("{ESC}", "Terminate") ;;;; Body of program would go here;;;; While 1 If WinExists("http://www.livescore.com - LiveScore.com - Mozilla Firefox") AND WinActive( "http://www.livescore.com - LiveScore.com - Mozilla Firefox") Then $size = WinGetClientSize("http://www.livescore.com - LiveScore.com - Mozilla Firefox") $newwidth = $size[0] + 50 $newheight = $size[1] + 50 WinMove ( "http://www.livescore.com - LiveScore.com - Mozilla Firefox", "", 0, 0 , $newwidth , $newheight ) WinSetTitle ( "http://www.livescore.com - LiveScore.com - Mozilla Firefox", "", "Resized" ) EndIf If WinExists("http://tracker.livescore.net - LiveScore.com - Mozilla Firefox") AND WinActive( "http://tracker.livescore.net - LiveScore.com - Mozilla Firefox") Then $size2 = WinGetClientSize("http://tracker.livescore.net - LiveScore.com - Mozilla Firefox") $newwidth2 = $size2[0] + 50 $newheight2 = $size2[1] + 50 WinMove ( "http://tracker.livescore.net - LiveScore.com - Mozilla Firefox", "", 0, 0 , $newwidth2 , $newheight2 ) WinSetTitle ( "http://tracker.livescore.net - LiveScore.com - Mozilla Firefox", "", "Resized" ) EndIf If WinActive ( "Resized" ) = 0 Then WinClose ( "Resized" ) EndIf WEnd ;;;;;;;; Func Terminate() Exit 0 EndFunc
herewasplato Posted April 30, 2005 Posted April 30, 2005 Try ... Sleep(1) WEnd [size="1"][font="Arial"].[u].[/u][/font][/size]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now