How do i get a program to simulate a keypress to the system
Posted on 2005-04-17
As some of you may or may not know, on Thinkpad computers you have the option to type in a 7 character password and "lock the hard drive". naturally some people loose their passwords and thus loose their hard drive.
I would like to write a program that would simulate a keypress from the keyboard. for example if the program called "Ctrl, Alt, Del" i would see the windows task manager because the program outputed the keypresses and the system responded. currently i do NOT know how to wright a C++ program to do this(if there is another language that can easly do it, then i might be willing to change the language)
Now i know that there are literaly billions of possible combonations with a 36^7 but i have some ideas that will limit that number down substansually, Also, it is my understanding that you have infinite retrys and very fast responce times from the hard drive.
my main idea for this program is to have the hard drive installed in a PC and will do constant interaction. another idea(some hardware required) would be to use the USB cord with a PS2 conection to the end, so that the computer would repeatedly send commands to the laptop computer "from the keyboard".
Yes, i know this will take a LONG time for the program to compleate it's task, but it is my hope that the Thinkpad users will be able to regain the use of their laptops.
Incase you are wondering(or perhaps you wish to make the program yourself) my idea to limit the possible number of combonations by asking the following questions.
1) are there only letters or only numbers?
2) Do you know of any specific letters or numbers in a specific place?
3)do you remember part of the password?
4) where are these parts located?
5)are the missing parts letters or numbers or both?
once again, i am only asking how to simulate a keyboard keypress from a computer program.