Codice:
#include <GUIConstants.au3>
#include <Misc.au3>
Global $click = 0
$ok = GUICtrlCreateLabel('Hai clickato 0 volte',2,2)
GUISetState ( )
While 1
Switch GUIGetMsg ()
Case -3
Exit
EndSwitch
If _IsPressed(01) Then
While _IsPressed(01) = 1
WEnd
$click += 1
If $click = 100 Then
MsgBox(0,"Primo","OK")
Endif
If $click = 200 Then
MsgBox(0,"Secondo","OK")
Endif
If $click = 300 Then
MsgBox(0,"Terzo","OK")
Endif
If $click= 400 Then
MsgBox(0,"Quarto","OK")
Endif
If $click = 500 Then
MsgBox(0,"Quinto","OK")
Endif
GUICtrlSetData($ok,'Hai clickato '&$click&' volte')
TrayTip("CliCk CouNt",$click,5,0)
EndIf
WEnd
Non è gran che, però mi aiuta ad esercitarmi
