To run Comfy all night long works best by queue-ing one task at a time, which requires clicking.
Make a new file, Mouseclick.txt, rename it to Mouseclick.bat and copy the text below into it.
Adjust delay to any number of seconds that is relevant to your task.
Save
Run
Leave mouse pointer where you want to click (Queue-button)
Wake up in the morning to 100's of new videos
*****
@echo off
title Left mouseclick script
set "delay=400"
echo This CMD window left-clicks where the mouse pointer is, every %delay% seconds.
:LOOP
powershell -Command "Add-Type -Name Win32 -Namespace User32 -MemberDefinition '[DllImport(\"user32.dll\")] public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint cButtons, UIntPtr dwExtraInfo);'; [User32.Win32]::mouse_event(0x02,0,0,0,[UIntPtr]::Zero); [User32.Win32]::mouse_event(0x04,0,0,0,[UIntPtr]::Zero)"
timeout /t %delay% >nul
goto LOOP
