如何用脚本按键精灵自动随机字母+数字?

求教能写这样一个脚本,在一个输入框里,输入随机“0~9”和“a~z”,输入的长度是6位,例如:crktgq 6prkvg k21he6 w1dzam 3il4w6 83jkef等等。

第1个回答  2013-08-14
Randomize
For 8
VBS m = Int((99 * Rnd) + 1)
If m>0 and m<11
KeyPress "S", 1
EndIf
If m>10 and m<21
KeyPress "D", 1
End If
If m>20 and m<31
KeyPress "J", 1
End If
If m>30 and m<41
KeyPress "Q", 1
End If
If m>40 and m<51
KeyPress "O", 1
End If
If m>50 and m<61
KeyPress "T", 1
End If
If m>60 and m<71
KeyPress "A", 1
End If
If m>70 and m<81
KeyPress "M", 1
End If
If m>80 and m<91
KeyPress "E", 1
End If
If m>90 and m<101
KeyPress "U", 1
End If

上面的是个例子,你可以第一个字母和后面的5分开进行,就可以保证第一个是字母,后面的随机。字母范围和数字范围可以自己增加本回答被网友采纳
第2个回答  2013-08-14
刷出那么一点,我就行给他们做
相似回答