#include $dll = DllOpen("user32.dll") $compte = 0 $si = 0 SplashTextOn ( "", "3" , 100 , 80 , -1 , -1, 1 , "" , 48) Sleep(1000) SplashTextOn ( "", "2" , 100 , 80 , -1 , -1, 1 , "" , 48) Sleep(1000) SplashTextOn ( "", "1" , 100 , 80 , -1 , -1, 1 , "" , 48) Sleep(1000) SplashTextOn ( "", "0" , 100 , 80 , -1 , -1, 1 , "" , 48) Sleep(1000) SplashOff( ) $t = TimerInit( ) While 1 If _IsPressed( "01", $dll) Then While _IsPressed( "01", $dll) Sleep (1) WEnd $compte = $compte + 1 EndIf If TimerDiff($t) >= 10000 then ExitLoop WEnd For $si = 1 to $compte If $compte <> $si then SplashTextOn ( "", $si , 140 , 80 , -1 , -1, 1 , "" , 48) Else SplashTextOn ( "Felicitations", $si , 140 , 80 , -1 , -1, 0 , "" , 48) EndIf $s = $compte - $si If $s <= 3 then sleep(($si / $compte)*1500) ElseIf $s <= 6 then sleep(($si / $compte)*700) ElseIf $s <= 10 then sleep(($si / $compte)*500) ElseIf $s <= 20 then sleep(($si / $compte)*400) ElseIf $s <= 40 then sleep(($si / $compte)*200) ElseIf $s <= 150 then sleep(($si / $compte)*120) ElseIf $s <= 500 then sleep(($si / $compte)*80) Else sleep(($si / $compte)) EndIf Next Sleep (3000) SplashOff( )