I'm trying to create a system that will automatically restart my computer and then log back into it. Using a simple move-and-click script and Task Scheduler, I have the Restarting part working, but I'm struggling with the logging in part.
Here's the thing: I know that autohotkey works in some capacity before logging in because when my log-in script automatically activates, windows registers that it's making clicks, and this brings up the password entry field.
But no matter what I try, I'm unable to get it to feed the Send string into the entry field. I've also noticed that the mouse move does not seem to be working, but that doesn't matter much, as one click brings up the entry field and no further clicks are required to start entering text.
Here is my code:
CoordMove, Mouse, Screen
MouseMove, (A_Screenwidth //2)+0, (A_ScreenHeight //2)+50,
The only thing I'm really concerned about is getting the Send string to work. Can anyone offer any help?
Edit: Since posting I've tried using SendRaw and SendInput in place of Send, and this has not had any effect.