Hi I want to login to a server automatically. For that I need a batch file that will handle mouse clicks and logs into the system depending on pixels of the server. Can anyone give an example for this?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t do that in batch. Unless you are just calling a low level program in the script that does this, or P/Invoking DLL’s from C# (question tagged with C#?).
If you want the server to log in automatically when it boots up, you can modify values in this registry key
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinlogonYou need to set
AutoAdminLogonto1. Then setDefaultUsernameandDefaultPasswordaccordingly.This batch file will set those keys (requires admin rights)