Put in keys automatically???
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Put in keys automatically???

Hybrid View

  1. #1
    Join Date
    May 2009

    Put in keys automatically???

    #include <iostream>
    #include <cstdlib>
    #include <ctime>
    #include <windows.h>

    using namespace std;

    system("net user John *");
    system("net user Michelle *");
    etc. etc.


    Question is... how can I make it so that the password is put in automatcially?
    I have a project in which the goal is to distribute a file around to all computers that puts in the password for the person automatically (that he/she selected) so that one can log on to any computer using his/her same user name and password.

    I would, of course, know all the passwords and just put in the code right underneath the "system("net user John *");"
    Does anyone know of a way?

  2. #2
    Join Date
    Feb 2009

    Re: Put in keys automatically???

    I don't exactly understand how and what you plan to do, but you can use the SendInput function to simulate keystrokes typed manually.
    I love work. It gives me something to do between weekends.

    Microsoft MVP (Visual C++)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!

HTML5 Development Center