x-flea |
|
| Con l'aiuto di miei amici e di I.Ren sono riuscito a fare il Click Counter... un semplice ma carisissimo programma per tenere il conto di quello che si fà CODICE #include <GUIConstants.au3> $conto = 0 Guicreate ("Click Counter" , 200 , 200 ) $agg = Guictrlcreatebutton ("Click" , 0, 0 , 70 , 50 ) $reset = Guictrlcreatebutton ("Reset Count" , 0 , 50 , 70 , 50 ) $testo = GUICtrlCreateLabel ("Totale :"& $conto , 0 , 150 , 100 , 50 ) GUISetState() guisetstate () while 1 = 1 $msg = guigetmsg ($conto = $conto + 1) If $msg = $GUI_EVENT_CLOSE Then Exit else Select Case $msg = $agg $conto = $conto + 1 GUICtrlSetData ( $testo , "Totale :"&$conto ) Guisetstate () Case $msg = $reset $conto = 0 GUICtrlSetData ( $testo , "Totale :"& $conto ) Guisetstate () endselect endif WEnd
|
| |