i’m trying to create a task in Scheduler to run Kantu macros at certain times of the day using Power shell,
#Launch Kantu for Chrome via command line
& “C:\Program Files (x86)\Google\Chrome\Application\chrome.exe” “file:///C:/nodetests/MondayBooking.html?direct=1”
keep getting a failed to parse error, bringBrowserToForeground does not seem work suggested by another forum member.
This error means that something is wrong with loading the HTML file, not running it. If you can attach it to your post I can try to load it.
Or (as a test): You can use the html file from github. You can do this as a test, but also keep using this file and specify the macro that you actually want to run with the ¯o=MondayBooking switch. Then the HTML page just acts as a “dummy page” for opening the browser and starting Kantu.