Interact with Windows Login after Restart

Get help with using AutoHotkey and its commands and hotkeys
Posts: 1
Joined: 19 Nov 2019, 11:37

Interact with Windows Login after Restart

19 Nov 2019, 12:18

Hello all,

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,
Sleep 1000
Sleep 500
Send my password

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.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], seamoon, ulraf and 126 guests