Windows 10: Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle?

Discus and support Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle? in Windows 10 Gaming to solve the problem; Hi all So I have been trying to set up Task Scheduler to run an Autohotkey .ahk script that toggles to Monochrome mode by sending Windows+Control+C.... Discussion in 'Windows 10 Gaming' started by TomHV, Jul 17, 2024.

  1. TomHV Win User

    Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle?


    Hi all So I have been trying to set up Task Scheduler to run an Autohotkey .ahk script that toggles to Monochrome mode by sending Windows+Control+C. However the task that I have created does not seem to run the script. I have run the script manually by double clicking and it works, so it can only be the Task Scheduler, or how I am linking the script to the task. I have included a screenshot of all the different settings as well as the autohotkey script. Background info: -I am using a Lenovo Thinkpad T495 -I have Windows 11 installed which was updated from Windows 10 last November 20

    :)
     
    TomHV, Jul 17, 2024
    #1
  2. Tom Files Win User

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

    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:

    Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle? CyxLZJ7SG5qfw204CittnYtzJ%2BnXYcwt8u9EKOEuFSg6MHPHwbmaXDJlPL9Tn%2B%2Btnsv9KaEndTLsnosgmUNjpR4%3D.png


    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
     
    Tom Files, Jul 17, 2024
    #2
  3. Task Scheduler Email Issue

    Not at all. I suggested in my previous note that you could schedule this AutoIt script:

    1. Take a screenshot
    2. Save it to a temporary file
    3. Generate an E-Mail
    4. Attach the screenshot
    5. Send it to its recipient
    Do you think that AutoIt is unable to execute each of these steps?
     
    Frederik Long, Jul 17, 2024
    #3
  4. Peer_Sam Win User

    Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle?

    Task Scheduler doesn't run script

    Hi,

    Thank you for writing to Microsoft Community Forums.

    Are you able to run the script manually? If yes, does it do what it is intended to?

    Disable the UAC temporarily.

    Make sure that the Task scheduler
    service is running.

    Press ‘Win+R’.

    Type Services.msc.

    Locate the service Task scheduler
    and make sure that it is in running state.

    Go to the Conditions
    tab in task scheduler and make sure that no such condition is set which could block the task from running.

    Enable All Tasks History in Task scheduler and run the scheduled task.

    Refresh the task scheduler and check if you find any error message/code for any step in the task run.

    Also try with disabling Run whether the user is logged on or not
    option and see if the script runs.

    Hope it helps.

    Peer Samie

    Microsoft Community-Moderator
     
    Peer_Sam, Jul 17, 2024
    #4
Thema:

Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle?

Loading...
  1. Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle? - Similar Threads - Unable Task Scheduler

  2. Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle?

    in Windows 10 Software and Apps
    Unable to get Task Scheduler to engage Autohotkey script for Monochrome toggle?: Hi all So I have been trying to set up Task Scheduler to run an Autohotkey .ahk script that toggles to Monochrome mode by sending Windows+Control+C. However the task that I have created does not seem to run the script. I have run the script manually by double clicking and it...
  3. Problem getting a powershell script to run in Task Scheduler

    in Windows 10 Software and Apps
    Problem getting a powershell script to run in Task Scheduler: Hello. I am trying to get a PowerShell script to run once every half hour in the Task Scheduler utility. The platform is Windows Server 2019 Standard Edition. I configured the script to run on a schedule starting at 12:00 AM every day, and repeat every 30 minutes...
  4. Problem getting a powershell script to run in Task Scheduler

    in Windows 10 Gaming
    Problem getting a powershell script to run in Task Scheduler: Hello. I am trying to get a PowerShell script to run once every half hour in the Task Scheduler utility. The platform is Windows Server 2019 Standard Edition. I configured the script to run on a schedule starting at 12:00 AM every day, and repeat every 30 minutes...
  5. Unable to Schedule mxdperfstat in Task Scheduler

    in Windows 10 BSOD Crashes and Debugging
    Unable to Schedule mxdperfstat in Task Scheduler: We are trying to schedule mxdperfstat in task scheduler which runs daily at a specific time, but after it is run, it gets stuck in running phase.The entire process for our mxd takes around 2-3 minutes.When the bat file is run manually which has the following command:...
  6. Script and task Scheduler

    in Windows 10 BSOD Crashes and Debugging
    Script and task Scheduler: Hello I work for a company with a number of powerful graphic computers on which Windows 10 is installed These computers work 24/7 with 2 engine programs that run intermittently 24/7 but not in parallel. I want to know if it is possible to create a script and use it...
  7. Task Scheduler doesn't run script

    in Windows 10 Software and Apps
    Task Scheduler doesn't run script: Hey Microsoft Community, I'm trying to create a task in Task Scheduler that runs a specific script. The issue is that when the task runs (whether I do it manually or if it's scheduled), the script doesn't actually get executed. I know that the script works, and I have tried...
  8. Problem Getting a Powershell Script to Run in Task Scheduler

    in Windows 10 Software and Apps
    Problem Getting a Powershell Script to Run in Task Scheduler: Hope I'm in the right place! I am trying to get a Powershell script to run daily in the task scheduler. It basically purges a folder on one of my drives: Get-ChildItem –Path “D:\Dropbox\Quicken\Backup” –Recurse | Where-Object CreationTime –lt (Get-Date).AddDays(-10) |...
  9. Task Scheduler Script

    in Windows 10 Network and Sharing
    Task Scheduler Script: I want to enable and disable my Ethernet connection at specific times each day. Task Scheduler prompts me for the script identifying the action of enabling or disabling the Ethernet connection. How do I identify these two specific scripts? 75194
  10. AutoHotKey EXPERT needed for simple Task View script

    in Windows 10 Support
    AutoHotKey EXPERT needed for simple Task View script: Greetings. I'm a Mac to PC convert and starting to love it. But there are a few things I need to make life a little easier. The need of this thread has already been discussed here -- Alternative way to launch Task View ? Solved - Windows 10 Forums The solution I'm...