Jump to content

Open program and send user+password


Recommended Posts

Hi, I'm new using the program, and I wonder if through the program I can do the following tasks?
1.open a program with exe file.
2. with this program open, on the window of the program,tab twice and then press enter to enable the logon window
3. When asked username and password, enter the username and password defined in Windows accesses.(windows local accounts)
Task 1 i managed to do it (I am new to this and for me it was something amazing)
Task 2 do not know how to do it and the task 3 for me it is mission impossible. :cry: 
So I consulted with experts on the subject.

 

Thanks

Link to comment
Share on other sites

1. For open other program Use: Run(), ShellExecute()

2. Use: AutoIt Window Info to get >>>> Control <<<<
    Use: ControlSend () to sent Usename and Password
    Use: ControlClick() to press to Login button!

Regards,
 

Link to comment
Share on other sites

12 minutes ago, VIP said:

1. For open other program Use: Run(), ShellExecute()

2. Use: AutoIt Window Info to get >>>> Control <<<<
    Use: ControlSend () to sent Usename and Password
    Use: ControlClick() to press to Login button!

Thanks, 

How can i send a TAB and theb ENTER?

How can i use the windows credentials of the logged user? loca user on windows.

 

Thanks

Link to comment
Share on other sites

  • Developers
2 minutes ago, cgaleano said:

How can i use the windows credentials of the logged user? loca user on windows.

Explain what you mean exactly? You want a way to retrieve the current user's password?
That's not possible.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

It's highly ensecure but you could store the password in a text file and use if statements to retrieve it.


Ie:


 

If @Username = "Robert" Then
   ; Read text file for Robert
ElseIf @Username = "Adam" Then
   ; Read text file for Adam
EndIf

 

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...