Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add idle in addition to wait #536

Open
1 task done
ifoundgoldbug opened this issue Nov 4, 2024 · 1 comment
Open
1 task done

Add idle in addition to wait #536

ifoundgoldbug opened this issue Nov 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ifoundgoldbug
Copy link

Describe the feature

Idle would stop a screen event from triggering again before the allotted time but unlike wait would allow for other screen events to trigger.

Describe the usage

Tracking 2 timers on the same scene.

For instance i have a script that needs to run every 20 minutes under trigger conditions abc

A separate script needs to run every 45 minutes under trigger conditions def.

There is a 3rd condition g that can trigger at any time interval.

Currently with the wait all I can do is have an accumulator on a 1 minute wait timer looking for def and then after 20 cycles checks for abc and runs then continues to 45 to complete Def. Unfortunately during the wait I can never check for condition G.

If there was an idle that would disable the screen trigger without a wait I would be able to check for condition G or beyond while my 2 timing loops are idling.

Is it a duplicate?

  • There is no duplicates
@ifoundgoldbug ifoundgoldbug added the enhancement New feature or request label Nov 4, 2024
@ifoundgoldbug
Copy link
Author

ifoundgoldbug commented Nov 4, 2024

One way this could be implemented would be something as simple as having a internal toggle on a scene trigger.

So for instance once the idle was called it would turn off the requested screen trigger and then re-enable it after the time expired.

Maybe another way of stating this could be that

Waiting disables The detection execution

Idling disables the intended screen trigger for a set period of time.

Currently so far as I can tell there is no way to set a screen trigger to offline and re-enable it without pausing the detection execution which is a problem for my use case.

Perhaps another maybe simpler way to implement it would be on the event toggle event have a sub option to toggle between timed toggle and untime toggle.

And if you click to a timed toggle then it will pop up a menu that lets you put in your duration like you would for the wait timer.

Maybe not the most elegant solution but I'm trying to think of the easiest way for implementation without requiring a lot of work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant