Help - Search - Members - Calendar
Full Version: while 1=1
AC Tools Everything Macro > AC Tool > AC Tool Discussion
nowhere
I now have a Master.mac running and a Concurrent.mac running. The Concurrent.mac only has 12 lines and I want it to constantly check to see if somehting is true, if so, press {F11}. So I used the simple While 1=1 loop. Now the loop count is getting pretty high pretty fast. Has anyone ever had problems with this? Is there a limit to the loop count? Thanks.
Ahk
I've never encountered any issues. If you are worried about the counts, you could increase your delay or restart the macro when the loop number gets very high, as there might be a limit to the loop number holder, or it might go back to zero instead of causing an issue.

nowhere
QUOTE(Ahk @ May 18 2009, 08:16 PM) *
I've never encountered any issues. If you are worried about the counts, you could increase your delay or restart the macro when the loop number gets very high, as there might be a limit to the loop number holder, or it might go back to zero instead of causing an issue.


Thanks for the info. I don't want the delay as that may cause the True part to come up while the concurrent is on the Delay line. But I guess I can restart it once or twice a day when I'm around. I'll let it go for a while to see how high it can go and experiment to see if there are any problems with 10e99 loops or somesuch.
DaMOB
QUOTE(nowhere @ May 18 2009, 10:53 PM) *
QUOTE(Ahk @ May 18 2009, 08:16 PM) *
I've never encountered any issues. If you are worried about the counts, you could increase your delay or restart the macro when the loop number gets very high, as there might be a limit to the loop number holder, or it might go back to zero instead of causing an issue.


Thanks for the info. I don't want the delay as that may cause the True part to come up while the concurrent is on the Delay line. But I guess I can restart it once or twice a day when I'm around. I'll let it go for a while to see how high it can go and experiment to see if there are any problems with 10e99 loops or somesuch.

I can make a while (1=1) loop right now and let it run overnight or for a few days without an issue.
nowhere
QUOTE(DaMOB @ May 19 2009, 10:08 AM) *
QUOTE(nowhere @ May 18 2009, 10:53 PM) *
QUOTE(Ahk @ May 18 2009, 08:16 PM) *
I've never encountered any issues. If you are worried about the counts, you could increase your delay or restart the macro when the loop number gets very high, as there might be a limit to the loop number holder, or it might go back to zero instead of causing an issue.


Thanks for the info. I don't want the delay as that may cause the True part to come up while the concurrent is on the Delay line. But I guess I can restart it once or twice a day when I'm around. I'll let it go for a while to see how high it can go and experiment to see if there are any problems with 10e99 loops or somesuch.

I can make a while (1=1) loop right now and let it run overnight or for a few days without an issue.


Yup, I left it running for about 60 hours straight (it was over 10m for the loop count) and didn't have a problem.
Bear
QUOTE(nowhere @ May 22 2009, 06:08 AM) *
Yup, I left it running for about 60 hours straight (it was over 10m for the loop count) and didn't have a problem.




61 Million tongue.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.