在按鍵精靈中判斷語句的寫法
在按鍵精靈中判斷語句的寫法:
指令X
FindPic 0,0,1024,768,"Attachment:\圖片*",1,intX,intY
If intX >0 And intY >0 Then
//要執行的代碼
endif
FindPic 0,0,1024,768,"Attachment:\圖片*",1,intX,intY
If intX >0 And intY >0 Then
//要執行的代碼
endif
FindPic 0,0,1024,768,"Attachment:\圖片*",1,intX,intY
If intX >0 And intY >0 Then
//要執行的代碼
endif
按鍵精靈執行判斷語句
FindPic 0,0,1440,900,"C:\Documents and Settings\Administrator\桌面\*",1.0,intX,intY
If intX > 0 And intY > 0 Then
MoveTo intX + 0, intY + 0
LeftClick 1
Delay 3000
FindPic 0,0,1440,900,"C:\Documents and Settings\Administrator\桌面\*",1.0,intA,intB
If intA > 0 And intB > 0 Then
MoveTo intA, intB
LeftClick 1
End If
Else
//在這里插入跳轉到開頭
End If
For 6
Delay 2000
KeyPress "F5", 1
Next
For 3
KeyPress "BackSpace", 1
Delay 500
Next
KeyPress "F5", 1Else
//在這里插入跳轉到開頭
End If
For 6
Delay 2000
KeyPress "F5", 1
Next
For 3
KeyPress "BackSpace", 1
Delay 500
Next
KeyPress "F5", 1
按鍵精靈判斷選擇語句怎么寫
//登陸加速器 Rem start VBSCall FindPic(0,0,1280,960,"登陸.bmp",0.8,x,y) If x>=0 and y>=0 MoveTo x+10 y+3 Delay 3000 LeftClick 1 Delay 3000 EndIf VBSCall FindPic(0,0,1280,960,"確認連接失敗.bmp",0.8,x,y) dim num = 0; //檢查是否連接 While x>=0 and y>=0 and i=0 and y>=0 (判斷如果失敗) Goto start (則重啟) EndIf Goto 登陸外掛 Rem 登陸外掛 ---------------------------------------- 無語了,以上審核不通過? 不運行后面的,不知道你指的是哪后面的。
如果是說Goto start后面的,那是因為你的Goto Start是無條件執行的,每次執行到此,就重啟了。即不會執行后面的語句。
因此必須把它放在一把失敗的判斷語句中。
【按鍵精靈8判斷語句Ifj=0thenjym=12ElseIfj=1thenjym=4elseIfj=2
If j=0 then :jym=12elseIf j=1 then : jym=4elseIf j=2 then :jym=5elseIf j=3 then :jym=453elseIf j=4 then :jym=5elseIf j=5 then :jym=6elseIf j=6 then :jym=7elseIf j=7 then :jym=8elseIf j=8 then :jym=4elseIf j=9 then :jym=3elseIf j=10 then :jym=2End if通常人們喜歡用下面這種 :select case j case 1 jym=4case 2 jym=5case 3 jym=453case 4 jym=5case 5 jym=6case 6 jym=7case 7 jym=8case 8 jym=4case 9 jym=3case 10 jym=2End Select。
求一個按鍵精靈簡單的判斷語句
B = "2,5,0,8,9" //逗號是英文輸入法的逗號
Bm = Split(B, ",")
For i = 0 To UBound(Bm)
If Clng(Bm(i)) = 2 Then
KeyPress 112, 1
Exit For
End If
Next
If i > UBound(Bm) Then
ExitScript
End If