Opt("GUIOnEventMode", 1) ;#include ;#include #include #include Global $GUIheight = 520 Global $GUIwidth = 515 Global $GUIcurHEIGHT = 10 Global $mainwindow = GUICreate("UfoAI win32 buildscript",$GUIheight,$GUIheight) ; GUISetBkColor( 0x000000, $mainwindow ) ; GUICtrlSetDefColor( 0xC0C0C0, $mainwindow ) GUISetOnEvent( $GUI_EVENT_CLOSE, "MainWindow" ) Global $Input = GUICtrlCreateInput( "", 10, $GUIcurHEIGHT, $GUIwidth-75, 20 ) GUISetState() Local $counter, $rand1, $rand2, $color[3]=[255,00,00] while 1 $counter+=1 ; if $counter > 12200 then Sleep(100) GUICtrlSetData( $Input, $counter, "" ) ; sleep(1) if $color[$rand2] = $rand1 then $rand1 = Random( 1, 255, 1 ) $rand2 = Random( 0, 2, 1 ) else if $rand1 < $color[$rand2] then $color[$rand2] -= 1 else $color[$rand2] += 1 endif endif ; GUICtrlSetBkColor( $Input, $color[0]*2^16 + $color[1]*2^8 + $color[2] ) Color( $Input, $color[0]*2^16 + $color[1]*2^8 + $color[2] ) WEnd Func MainWindow() If @GUI_WINHANDLE = $mainwindow Then exit endif EndFunc Func color($var1,$var2) GUICtrlSetBkColor( $var1, $var2 ) EndFunc