@ Echo off
Title QQ automatic login script generator V1.0
Echo.
Echo.
Echo QQ automatic login script generator V1.0
Echo code by: t0nsha
Echo Email: liaodunxia {at} gmail.com
Echo blog: http://blog.csdn.net/t0nsha/
Echo considerations:
Echo (1) the QQ login using this script must have been manually logged on once;
Echo (2) it is recommended that you do not lose the focus during script running. If not, try multiple times.
Echo.
Set/P qqpath = (1/3) enter the QQ path (with quotation marks ):
Set/P qqnum = (2/3) enter the QQ number:
Set/P qqpass = (3/3) enter the QQ password:
Echo 'created by: QQ automatic login script generator v1.0.bat> % qqnum %. vbs
Echo 'writer: t0nsha, email: tunhsiaatgmail.com >>%qqnum %. vbs
Echo 'welcom to myblog: http://blog.csdn.net/t0nsha/> % qqnum %. vbs
Echo qqpath = % qqpath %> % qqnum %. vbs
Echo set Ws = wscript. Createobject ("wscript. Shell")> % qqnum %. vbs
Echo set oexec = ws. Exec (qqpath)> % qqnum %. vbs
Echo Do While 1> % qqnum %. vbs
Echo if ws. appactivate ("QQ User Logon") = true then> % qqnum %. vbs
Echo ws. sendkeys "{tab}"> % qqnum %. vbs
Echo ws. sendkeys "% qqnum %"> % qqnum %. vbs
Echo: Pause for 200 milliseconds. Wait until the QQ number is entered> % qqnum %. vbs
Echo wscript. Sleep (200)> % qqnum %. vbs
Echo ws. sendkeys "{tab}"> % qqnum %. vbs
Echo ws. sendkeys "% qqpass %"> % qqnum %. vbs
Echo wscript. Sleep (200)> % qqnum %. vbs
Echo ws. sendkeys "{enter}" >>% qqnum %. vbs
Echo exit do> % qqnum %. vbs
Echo end if >>% qqnum %. vbs
Echo wscript. Sleep 200 >>%qqnum %. vbs
Echo loop> % qqnum %. vbs
Echo.
Echo congratulations, the script has been generated!
Pause