hi,
also ich hab mir überlegt nen witzigen screensaver zu gestalten,
daher hab ich ersteinmal mit ein paar fingerübungen angefangen...
naja da ist auch schon mein erstes problem
funktionieren tut es ja, allerdings wird die schleife immer langsamer 0o
ich denke mal es liegt daran , dass es ein paar viele guictrl's werden...
nur so spontan fällt mir keine lösung ein die alten graphic ctrls zu löschen 0o
naja seht selbst
#include <GUIConstants.au3>
[/autoit][autoit][/autoit][autoit]$gui = GUICreate("",100,100,-1,-1,-1,bitor($WS_EX_TOolwindow,$WS_EX_TOPMost))
[/autoit][autoit][/autoit][autoit]GUISetBkColor(0x000000)
guisetstate(@sw_show)
while True
sleep(50)
for $i = 1 to 100 step 5
for $i1 = 1 to 100 step 5
sleep(15)
GUICtrlCreateGraphic($i,$i1,5,5)
GUICtrlSetBkColor(-1,0x00ff00)
GUICtrlCreateGraphic($i1,$i,5,5)
GUICtrlSetBkColor(-1,0x0000ff)
Next
guisetstate(@sw_show)
Next
WEnd
EDIT
ok, das tempo hab ich jetzt zumindest mal so gelöst, aber elegant ist was anderes xD
[autoit]#include <GUIConstants.au3>
#include <Array.au3>
$gui = GUICreate("",100,100,-1,-1,-1,bitor($WS_EX_TOolwindow,$WS_EX_TOPMost))
GUISetBkColor(0x000000)
[/autoit][autoit][/autoit][autoit]dim $y[1]
[/autoit][autoit][/autoit][autoit]for $x = 0 to 100 step 5
for $x1 = 0 to 100 step 5
$ID = GUICtrlCreateGraphic($x,$x1,5,5)
_ArrayAdd($y,$ID)
$ID = GUICtrlCreateGraphic($x1,$x,5,5)
_ArrayAdd($y,$ID)
Next
Next
guisetstate(@sw_show)
while True
sleep(50)
for $z = 1 to _ArrayMaxIndex($y)
sleep(15)
$farbe = random(1,dec("ffffff"),1)
GUICtrlSetBkColor($y[$z],$farbe)
guisetstate(@sw_show)
next
WEnd