帐号密码登录的高级方法
Dim a
// 密码
PSW="mima"
// 计算密码长度
PSW_Len=Len(PSW)
ReDim a(PSW_Len)
i=0
Delay 1000
For PSW_Len
a(i) = Mid(PSW,1+i,1)
If Asc(a(i))>=97 and Asc(a(i))<=122
Delay 200
// 英文大写
KeyPress Asc(a(i))-32,1
ElseIf Asc(a(i))>=65 and Asc(a(i))<=90
// 英文小写
Delay 200
KeyDown 16,1
KeyPress Asc(a(i)),1
KeyUp 16,1
ElseIf Asc(a(i))>=48 and Asc(a(i))<=57
Delay 200
KeyPress Asc(a(i)),1
Else
MessageBox "密码: " & PSW &" 含有符号,不适用此脚本"
EndScript
EndIf
i = i + 1
UserVar PSW1="AbcdzZ12345" "请输入你的密码"
// 计算密码长度
PSW1_Len=Len(PSW1)
ReDim a(PSW1_Len)
i=0
For PSW1_Len
a(i) = Mid(PSW1,1+i,1)
If Asc(a(i))>=97 and Asc(a(i))<=122
// 英文大写
KeyPress Asc(a(i))-32,1 ElseIf Asc(a(i))>=65 and Asc(a(i))<=90
// 英文小写
KeyDown 16,1
KeyPress Asc(a(i)),1
KeyUp 16,1
ElseIf Asc(a(i))>=48 and Asc(a(i))<=57
// 数字
KeyPress Asc(a(i)),1
Else
MessageBox "密码: " & PSW1 &" 含有符号,不适用此脚本" End If
i = i + 1
Next