Win4lif3 Posted December 11, 2012 Share Posted December 11, 2012 i basicly need help with this type of function if my value 1 dosent change within 50 miliseconds then send("{delete}") just an example.. please help me :3 Link to comment Share on other sites More sharing options...
Andreik Posted December 11, 2012 Share Posted December 11, 2012 $bChanged = False $test_value = 8 $my_var = $test_value $Timer = TimerInit() Do If $my_var <> $test_value Then $bChanged = True ExitLoop EndIf Until (TimerDiff($Timer) > 50) If Not $bChanged Then Send("{delete}") When the words fail... music speaks. Link to comment Share on other sites More sharing options...
Win4lif3 Posted December 11, 2012 Author Share Posted December 11, 2012 $bChanged = False $test_value = 8 $my_var = $test_value $Timer = TimerInit() Do If $my_var <> $test_value Then $bChanged = True ExitLoop EndIf Until (TimerDiff($Timer) > 50) If Not $bChanged Then Send("{delete}") Thanks!! just what i needed Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now