Sign in to follow this  
Followers 0
Tri

loop infinity

2 posts in this topic

How do i loop a function to keep running itself until I press END to stop?

Currently I have

[function]

Sleep(1000000)

I'm quite new to programming, I think know how this relates in java. In java it would be:

int x = 1;

int y = x+1;

do {

function

}

while (x < y);

Correct me if I'm wrong

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

HotKeySet("{END}", "Stop")
$run = 1
While $run
;Do stuff
WEnd

Func Stop()
$run = 0
EndFuncoÝ÷ Ø@ÈL+^Å©©çë¢h^â殶­sc²&W72W62FòFW&ÖæFR67&BÂW6Rô'&V²FògV÷C·W6RgV÷C° ¤vÆö&Âb33cµW6V@¤÷D¶W6WBgV÷C·µU4WÒgV÷C²ÂgV÷CµFövvÆUW6RgV÷C²¤÷D¶W6WBgV÷C·´U47ÒgV÷C²ÂgV÷CµFW&ÖæFRgV÷C²¤÷D¶W6WBgV÷C²²b333¶BgV÷C²ÂgV÷Cµ6÷tÖW76vRgV÷C²µ6gBÔÇBÖ@ £³³³²&öGöb&öw&Òv÷VÆBvòW&R³³³°¥vÆR¢6ÆVW¥tVæ@£³³³³³³³° ¤gVæ2FövvÆUW6R¢b33cµW6VBÒäõBb33cµW6V@¢vÆRb33cµW6V@¢6ÆVW¢FööÅFb33µ67&B2gV÷CµW6VBgV÷C²b33²ÃâtVæ@¢FööÅFgV÷C²gV÷C²¤VæDgVæ0 ¤gVæ2FW&ÖæFR¢WB¤VæDgVæ0 ¤gVæ26÷tÖW76vR¢×6t&÷CbÂgV÷C²gV÷C²ÂgV÷CµF22ÖW76vRâgV÷C²¤VæDgVæ

Edited by poisonkiller

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0