Task Scheduler: is there a way to set a visual-color-based trigger for an AutoHotkey Macro?

Tom Files 0 Reputation points
2024-05-19T15:36:47.71+00:00

Hi all

So in essence, I am trying to create an automated routine, where my computer engages monochrome mode (Ctrl+Win+C) every 30 minutes. I have partially achieved this in that I have created an AutoHotkey script which sends Control+Windows+C, when called by a Task Scheduler Basic Task. The trigger for the task, is the unlocking of the laptop/workstation. The Task itself is set to then run on repeat every 30 minutes.

The limitation is that hitting Control+Windows+C every 30 minutes merely toggles the setting and so, it will send the screen back to color every 1hr, as much as it sends it to monochrome.

Ideally, a visual based trigger event would be better whereby it detects if there is color on the screen, which then engages the script, thus removing the need to have the repeat function.

So far, much of Task Scheduler is self expanatory, however when I look at the events trigger, it is pretty confusing: Image

Does anyone know if its actually possible to set up what I have described? Somehow, this feels it should be much simpler than its turning out to be. Edit: I should add that if a color based trigger is possible, it'd be best to have it on a delay where it only engages the script after 5 minutes (as sometimes I might engage color mode to perform a small task)

Best

Tom

Windows Autopilot
Windows Autopilot
A collection of Microsoft technologies used to set up and pre-configure new devices and to reset, repurpose, and recover devices.
418 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,497 questions
0 comments No comments
{count} votes