Qq automatic login script generator v1.01.bat, uses the processid attribute to activate the QQ login window. This solves some of the problem that the logon window title cannot be activated in version 1.0 and some modified QQ versions are not "QQ user login.
@ Echo off
Title QQ automatic login script generator v1.01
Echo.
Echo.
Echo QQ automatic login script generator v1.01
Echo code by: t0nsha
Echo Email: tunhsiaatgmail.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 (for example, C: Program filesqqqq.exe, without 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.01.bat> % qqnum %. vbs
Echo 'writer: t0nsha, email: liaodunxia@gmail.com> % qqnum %. vbs
Echo 'welcom to myblog: http://blog.csdn.net/t0nsha/> % qqnum %. vbs
Echo sub delayedsendkeys (STR) >>%qqnum %. vbs
Echo wscript. Sleep 100 >>%qqnum %. vbs
Echo wshshell. sendkeys STR >>% qqnum %. vbs
Echo end sub> % qqnum %. vbs
Echo dim wshshell, oqq, szqqpath> % qqnum %. vbs
Echo szqqpath = "% qqpath %"> % qqnum %. vbs
Echo set wshshell = Createobject ("wscript. Shell")> % qqnum %. vbs
Echo set oqq = wshshell. Exec (szqqpath)> % qqnum %. vbs
Echo Do While 1> % qqnum %. vbs
Echo if wshshell. appactivate (oqq. processid) = true then> % qqnum %. vbs
Echo delayedsendkeys "{tab}" >>%qqnum %. vbs
Echo delayedsendkeys "% qqnum %"> % qqnum %. vbs
Echo delayedsendkeys "{tab}" >>%qqnum %. vbs
Echo delayedsendkeys "% qqpass %"> % qqnum %. vbs
Echo delayedsendkeys "{enter}" >>% qqnum %. vbs
Echo exit do> % qqnum %. vbs
Echo end if >>% qqnum %. vbs
Echo wscript. Sleep 100 >>%qqnum %. vbs
Echo loop> % qqnum %. vbs
Echo.
Echo congratulations, the script has been generated!
Pause