Sometimes we on the personal computer, each input password more trouble, can automatically login, but if more QQ account, you can use this script
has been using a madman version of the QQ, but also with its attached automatic login for a long time, but the latest version of the Madman QQ somehow canceled the automatic login component. Fortunately QQ2009 has been able to remember multiple numbers at the same time password, although to click a few more, but still able to achieve the password-free login.
Who knows recently did not know what crazy computer, every once in a while, QQ remember the password will be emptied. My two QQ password are set more complex, each login to enter two times password is really a painful thing, so decided to make a login device.
Search on the internet for a long time, found a use of VBS to make QQ Login Script method:
Copy Code code as follows:
Set WshShell = WScript.CreateObject ("Wscript.Shell") ' Creates a Shell object
wshshell.run "C:progra~1tencentqqqq.exe" ' running QQ, this is changed into your own QQ directory
wscript.sleep 3000 ' hibernate 3000 milliseconds (stop 3 seconds)
wshshell.sendkeys "{tab}"
Wscript.Sleep 100
Wshshell.sendkeys "xxxxxxxxx" here xxxx Use your QQ number instead of
Wscript.Sleep 100
wshshell.sendkeys "{tab}"
Wscript.Sleep 100
Wshshell.sendkeys "********" ' Here's * * * with your QQ password instead of
Wscript.Sleep 1000
wshshell.sendkeys "{Enter}"
Note that if the name of the folder is greater than 8 characters or there are spaces in the middle, write "progra~1" in this form, which is to retain the first 6 letters of the first name and then add "~", which represents the first folder with the same name as the top 6 letters. For example, there are 2 folders in the middle of the space: Program Files and program Filez, then first arrange the icon by name, look at the front is the ~, the 2nd is ~2
But the code copied over, but always said that the password error. For half a day, I finally realized that it was because I had some special characters in my password, and these special characters have other meanings in the VBS. However, in order to use the original meaning of these special characters, there is no solution to the Internet-many sites say "" "boot on it, for example, if there is a" $ "character in the password, it should be replaced with" $ ". But I tried to prove in the DOS environment this is not possible!
Finally, after repeated tests, the problem was finally solved. Also, I have added a judgment process. That is, if you put this script in the beginning--> All Programs--> start, the intention is to run automatically when the boot, then you can click OK or Cancel to start or skip QQ automatic login. The code is as follows:
Copy Code code as follows:
Set WshShell = WScript.CreateObject ("Wscript.Shell")
Dim a
a = MsgBox ("Login QQ automatically?") ",
," QQ automatic Login ")
If a=1 Then
wshshell.run "D:progra~1tencentqq2009binqq.exe"
Wscript.Sleep 11000
Wshshell.sendkeys "+{tab}"
Wscript.Sleep 300
Wshshell.sendkeys "Xxxxxxx{tab}"
Wscript.Sleep 300
Wshshell.sendkeys "****************{tab}"
Wscript.Sleep 300
Wshshell.sendkeys "{Down 7}{enter}"
Wscript.Sleep 300
wshshell.sendkeys "{tab 4}{enter}"
Wscript.Sleep 15000
Wshshell.run "D:progra~1tencentqq2009binqq.exe"
Wscript.Sleep 2000
Wshshell.sendkeys "+{tab}"
Wscript.Sleep 300
Wshshell.sendkeys "Xxxxxxxxx{tab}"
Wscript.Sleep 300
Wshshell.sendkeys "****************{tab}"
Wscript.Sleep 300
Wshshell.sendkeys "{Down 7}{enter}"
Wscript.Sleep 300
Wshshell.sendkeys "{tab 4}{enter}"
End If
Comments:
If you don't want the prompt dialog box to appear, just delete the 2nd, 3, 4, and the last line.
Line 5th, my QQ startup directory is in D:program filestencent.
Line 6th, because you may have to load many programs at the same time, QQ startup process may be slow, need to wait 11 seconds to ensure that the login interface appears. And I found that the crazy version of QQ in the start-up process is very vulnerable to the loss of the current login window, so the wait time should be as long as possible to ensure that there is no other program to steal the current window when automatically logged in.
Line 7th, the madman version of QQ, unless it is the first run QQ, otherwise the cursor position is not in the input number of the place, but enter the password place, so you need to send Shift+tab key combination so that the cursor appears in the Input Number box.
for keys that need to be combined with the shift, Ctrl, alt three control keys, SendKeys uses special characters to denote: +, ^,%, and for some control functions that do not generate characters, you need to enclose the name of the key in braces. Here are the controls for these keystrokes and representations:
Press Code
BACKSPACE {BACKSPACE}, {BS}, or {bksp}
Break {break} ;
CAPS LOCK {capslock}
DEL or delete {delete} or {del}
Down ARROW {down}
End {end}
Enter {enter} or ~  &N Bsp
ESC {esc}
Help {help}
Home {home} ;
INS or insert {Insert} or {ins}
left ARROW {left}
NUM LOCK {N umlock}
Page DOWN {pgdn}
Page UP {PGUp}
PRINT screen {prtsc}
Right ARROW {right}
SCR OLL LOCK {scrolllock}
TAB {tab}
up ARROW {Up} &nbs P
F1 {f1}
...
F10 {F10}
Line 8th, the cursor position changes, so delay 0.3 seconds to ensure that the cursor successfully transferred. To the same below.
Line 9th, after entering the number, you need to press the TAB key to make the cursor jump to the password input box. Here I consider the number key and tab click in the same box, so directly put together, save time.
Line 11th, enter the password. Note that if your password has "$", "(") "," * "," + "," _ "," [","? "," "," ^ "," {"or" | " Symbol, you must use the {} box, such as "[", you have to write "{[}", if there is "{", you have to write "{{}", if the password is "a*2+3", you have to write "a{*}2{+}3". The rest of the analogy.
Note that the last {tab}, if you only have a QQ number, and every time the normal way to log in, then you can change the {Tab} to {Enter}, and then delete the following line on the line.
The 13th line, because I always want to be able to login in stealth, so here add the press down key to select stealth mode, select stealth mode after you need to send the ENTER key to select. If you need to send multiple duplicate single letter keystrokes, you do not have to type the letter repeatedly, SendKeys allows you to use a simplified format for the description, using the format "{Key number}". For example, to send a 10 letter "x", enter "Wshshell.sendkeys" {x 10} "", so here I use 7 down keys.
Line 15th, where 4 tabs are used to move the mouse click Focus to the login button in the login window, and finally send a carriage return to begin the login process.
Line 17th, I need to log in two QQ number, so here you need to wait for at least 15 seconds to ensure that the first number is fully logged in. If your first QQ number has not signed up to the second login window, the second QQ login will fail, you need to increase the value here.
The following process is the same as before, no longer repeat. After editing this code, create a new text file, copy the code into it, and then rename the file to Autoqq.vbs, double-click to see the effect.
Supplementary Note:
1 Double-click to run the VBS file, you can not click the mouse, you can not hit the keyboard, you must wait until the QQ number started to do other things, otherwise the login process is likely to fail.
2 run this script can not have other preemption of the top window of the program, such as the QQ card and so on, otherwise WScript will send the characters to the wrong window, and do not set up to receive QQ messages on the Automatic pop-up window, or follow-up QQ login is likely to be disturbed.
3 This method automatically login QQ, the password is in plaintext form in the VBS file, so only applicable to private computers, if more than one person using the same computer is not safe. Maybe you can go to the Internet to find a software called "Vbs2exe" to convert the script file to exe file, but I tried many times, this software cannot run on my machine.
(I original works, reproduced please specify from the Xuan Bird)