|
Post by snowday on Feb 29, 2024 16:44:45 GMT
So, I'm looking for a way to make a macro wait X amount of time, but without the macro halting all activity until that time occurs. I have multiple events that need to occur during a thirty minute window, and these events are dynamic in length and frequency, so I can't just put a counter into a loop to approximate 30 minutes. What I would like to do is apply math to variable TIME to project what time it will be in thirty minutes, and then use that as a trigger. In simpler terms, what I want is code that would do the same as the following, if TIME had a bit of extra functionality.
1 | IF | TIME | 2:04:09 PM | IS 30 MINUTES BEFORE CURRENT TIME | GOTO MACRO LINE | 1
To do ANYTHING like this, it seems I would need to be able to store the current time in a variable, and then regularly compare the current time to the time stored in the variable, to determine if 30 minutes have passed.
Is there any way to do this?
|
|
|
Post by zeak on Mar 4, 2024 6:08:21 GMT
Hi Snowday,
I have an idea, just wondering how you would determine your X time, would it be a prompt box at the start of the macro or based on what time the macro started. And if you could give more examples of what you want done in lieu time that would be very helpful.
Cheers, Zeak
|
|