Run a Macro Hourly


#1

How do I run a macro every hour, just before the start of the hour?

I searched and found:

you can run these manually or have the action performed regularly on an hourly basis or triggered by another program or script

However, I cannot find details on how to do this in the manual.


#2

Okay, I found a page about using Windows Task Scheduler.
However, I created the Macro using the Chrome extension, and cannot find a .kmacro file for it. Can I use this macro, or do I have to create a new one in the desktop app for this to work?
I really want the macro to run hourly in Chrome, not in the built-in browser of the desktop app.


#3

You can also run chrome macros from the command line.

I have not tried it with the task scheduler, but I expected this to work just fine. As command line you would use this:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "file:///D:/mytestcases/DemoAutofill1.html?direct=1&close=1&savelog=log1.txt"

It starts Chrome, loads the macro (as web page) and runs it.


#4

Thanks Ulrich. Just, where do you get the HTML file from? The macro just appears to be a JSON file. Can the file be the page on the internet that I want to automate?

Edit: Oh wow! Yeah, that seems to work. Thanks Ulrich, you’re awesome!