Click Counter, Programma semplice... ma simpatico!

« Older   Newer »
  Share  
x-flea
icon4  CAT_IMG Posted on 10/4/2008, 18:48     +1   -1




Con l'aiuto di miei amici e di I.Ren :D sono riuscito a fare il Click Counter... un semplice ma carisissimo programma per tenere il conto di quello che si fà :P

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
 
Top
I.Ren
CAT_IMG Posted on 10/4/2008, 19:02     +1   -1




bravo! ;)
 
Top
lknokl
CAT_IMG Posted on 10/4/2008, 21:55     +1   -1




buon inizio ;)
 
Top
x-flea
CAT_IMG Posted on 11/4/2008, 15:58     +1   -1




bello avere delle persone su cui contare! grazie a tutti :B): :B): :B): ;) ;)
 
Top
3 replies since 10/4/2008, 18:48   107 views
  Share