I'm faced with a problem:
Under Windows Server 2003, I need to automate an application (Sage 100) that doesn't have any automation service of its own.
First attempt
I found -and was impressed by- AutoHotKey and have been able to create an appropriate script to automate the application, however, it won't work as a scheduled task as there is no graphical login option in the Scheduler: the task starts, but the AutoHotKey script is unable to detect the windows and send keyboard keys.
The result is that the task just sits there, never performing its actions and never ending.
1) It there a way to force a graphical login, say force a login into a Terminal Service session on the server?
2) Alternatively, is there another way to perform these kinds of automation?
Thanks for your input.
Edit
Thanks so far for the suggestions but I can't find if any of them can actually solve the issue at hand: they all more or less work in the same way that AutoHotKey does and I cannot find any info actually suggesting that these replacements would work better when running under a Scheduled Task when the user is not logged in.
You may be interested in autoit3 (Freeware), AutoIT can detect windows and act properly upon them. I use it quite a lot to automate such tasks. You can compile your scripts to executables if needed.
Features of autoit:
You can use
Phantom
they have free command line tool and a scripting language suitable for automating GUI tasks
I've used MacroExpressfor this sort of thing in the past. I think it's around the 60 USD mark for the basic version.
It would be more of a 'quick and dirty' fix than something scripted but if it works it works!
Just wrap up this topic.
I asked a more targeted questions: Is it possible for a Scheduled Task to perform a graphical (interactive) logon or use a script to do the same?.
The answer was to use LogonExpert to schedule and automatic interactive logon, then run the scheduled task in the full graphical environment.