1樓:***無邊落木
findpic 0,0,1024,768,"attachment:\圖1.bmp",0.9,intx,inty
if intx > 0 and inty > 0 then//找到圖1後,要執行的命令寫在then和end if之間。
beep
end if
findpic 0,0,1024,768,"attachment:\圖2.bmp",0.9,intx,inty
if intx > 0 and inty > 0 then//找到圖2後,要執行的命令寫在then和end if之間。
endscript
end if
2樓:鑫晨
例子1: //判斷條件(0:等於 1:
不等於 2:近似等於) ifcolor 860,27,"e1b072",0 then rightdown 1//按下右鍵 else rightup 1//彈起右鍵 end if //判斷座標點(860,27)的顏色是否等於e1b072 //你用按鍵自帶的抓抓 看一下你要那個位置變成綠色時的顏色 把這裡的e1b072改掉 860,27為你這個點的座標 //這個只能執行一次 如果要一直判斷 下面這樣寫: do ifcolor 860,27,"e1b072",0 then rightdown 1//按下右鍵 else rightup 1//彈起右鍵 end if loop
按鍵精靈如何實現多個條件判斷乙個結果
3樓:tony羅騰
a=1b=2
c=3f=0
if a = 1 and b = 2 and c = 3 thenf = 1
messagebox f
end if
4樓:匿名使用者
if a then
if b then
if c then
//end if
end if
end if
按鍵精靈怎麼進行條件判斷啊?
5樓:刺友互
1、traceprint "開始",traceprint 全盤搜尋檔案("1.txt")'根據返回值 自行編寫判斷。
2、function 全盤搜尋檔案(檔名),dim fso, fw, bat, fr, wsh, 有效碟符。
3、有效碟符 = 獲取存在磁碟(),set fso = createobject,if fso.fileexists("全盤搜尋.txt") then fso.
deletefile ("全盤搜尋.txt")。
4、set fw = fso.opentextfile("全盤搜尋.bat", 2, true)。bat = "@echo off " & vbcrlf。
5、bat = bat &"set ""filename=" & 檔名 & """ " & vbcrlf ,bat = bat &"echo 正在搜尋,請稍候... " & vbcrlf。
6、bat = bat &" if /i ""%%~nxb"" equ ""%filename%"" ( " & vbcrlf 。bat = bat &" echo.%%b >> 全盤搜尋.
txt )))) " & vbcrlf 。
6樓:拔光你的jj毛
例子1:
//判斷條件(0:等於 1:不等於 2:近似等於)ifcolor 860,27,"e1b072",0 thenrightdown 1//按下右鍵
else
rightup 1//彈起右鍵
end if
//判斷座標點(860,27)的顏色是否等於e1b072//你用按鍵自帶的抓抓 看一下你要那個位置變成綠色時的顏色 把這裡的e1b072改掉 860,27為你這個點的座標
//這個只能執行一次 如果要一直判斷 下面這樣寫:
doifcolor 860,27,"e1b072",0 thenrightdown 1//按下右鍵
else
rightup 1//彈起右鍵
end if
loop
按鍵精靈的判斷語句不滿足條件怎麼重複執行?
7樓:匿名使用者
doifcolor 1254,87,"a5a6a5",0 thentraceprint "顏色等於了,跳出判斷"
exit do
else
traceprint "顏色不等於了,迴圈判斷"
delay 500
end if
loop
按鍵精靈條件判斷
8樓:匿名使用者
舉個栗子,**如下
findpic 1253, 396, 1317,500, "attachment:\hl.bmp", 0.9, intx, inty
if intx > 0 then
//此處放你的點選**
end if
按鍵精靈條件判斷中 多條件同時成立怎麼寫
9樓:匿名使用者
a=1b=2
c=3f=0
if a = 1 and b = 2 and c = 3 thenf = 1
messagebox f
end if
按鍵精靈9 條件語句判斷,按鍵精靈多個if語句套用
if 判斷1 then 只有當判斷1執行,才進行判斷2 if 判斷2 then 判斷2 end 判斷2 end 判斷1 按鍵精靈多個if語句套用 5 findpic 0,0,1024,768,attachment 1.bmp 0.9,intx,inty if intx 0 and inty 0 th...
按鍵精靈迴圈語句,按鍵精靈判斷和迴圈語句
while i 0 找圖一找到則end if 找圖二.找圖五 找到則i i 1 end if if i 5 則 goto a loop.rem a.找圖六。簡單吧 按鍵精靈判斷和迴圈語句 dofindcolor 0,0,1024,768,0000ff intx,inty if intx 0 and ...
按鍵精靈怎麼指令碼怎麼後台執行,按鍵精靈怎麼讓指令碼執行指定的視窗並支援後台
plugin hwnd window.mousepoint while trueplugin bgkm5.keydown hwnd,17 plugin bgkm5.keydown hwnd,70 plugin bgkm5.keyup hwnd,70 plugin bgkm5.keyup hwnd,1...
按鍵精靈判斷語句不滿足條件怎麼重複執行?我的只執行一次
rem jx2201 ifcolor 1254,87,a5a6a5 0 then goto jx2201這裡是多餘的,可以不要else call bj22 goto jx2201 繼續判斷 end if 1 程式沒有再次走到 ifcolor 1254,87,a5a6a5 0 then,而不是沒有ca...
按鍵精靈怎麼繫結電腦?按鍵精靈如何繫結硬碟
按鍵精靈本身自帶乙個系統外掛程式,在sys系統外掛程式中可以看到是讀硬碟序列號的,有可能根據這個來做的註冊。你試一下。序列號 你 先做個 小精靈 讀取一下他的 硬碟序列號 發給你,然後你在你的程式裡面加上。if 序列號 讀取出來的硬碟序列號 then endscript 註冊碼的演算法太麻煩了,直接...