http://tw.knowledge.yahoo.com/question/question?qid=1009010505853

戲谷遊戲的登錄畫面,「密碼輸入」 是會擋按鍵精靈的「SayString」這指令,還有「Ctrl+V」貼上的方式。

所以只能模擬手動按鍵「KeyPress」的方式。


提供按鍵精靈腳本6.71版,範例腳本參考:

Dim a
// 密碼
PSW="AbcdzZ12345"
// 計算密碼長度
PSW_Len=Len(PSW)
ReDim a(PSW_Len)
i=0
For PSW_Len
    a(i) = Mid(PSW,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 "密碼: " & PSW &" 含有符號,不適用此腳本"
        EndScript
    EndIf
i = i + 1
EndFor
創作者介紹
創作者 【魔幻小鱉】的部落格 的頭像
魔幻小鱉

【魔幻小鱉】的部落格

魔幻小鱉 發表在 痞客邦 留言(0) 人氣( 941 )