I'm having some issues with an automated backup macro script I've written using Autohotkeys.
My specific issue is that I need the script to run on a Windows based server at a given time during the night and run the macro in a Windowed environment. I have successfully created a Scheduled Task using Task Scheduler, this task launches my autohotkey binary and that part works just fine, task scheduler loads it with the correct arguments at the correct time of day.
The issue is that the scheduled task doesn't have an environment where Windows for the macro to interact with can exist (the macro clicks on buttons, checks to see if certain windows exist, etc), as there is no display device connected to the server. I have ran this script when connected via RDP, and as RDP acts as a display device it worked without a hitch.
I then downloaded AutoLogon which schedules a login to a windowed environment at a specific time. This of course works, in so far as it logs a user in at a given time to produce a windowed environment, and will work if a monitor is connected to the server. The issue here is that the server does not have a monitor attached and so does not actually render anything, so my script fails.
I'm at a loss on how to go forward from this point. Does anyone have any ideas or a similar experience which could possibly help me?