-
May 16th, 2009, 10:14 AM
#1
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?
-
May 17th, 2009, 12:50 AM
#2
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.
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|