按鍵精靈9 條件語句判斷,按鍵精靈多個if語句套用

時間 2022-03-13 20:59:26

1樓:

if 判斷1 then

』只有當判斷1執行,才進行判斷2

if 判斷2 then

'判斷2**

end 判斷2

end 判斷1

按鍵精靈多個if語句套用 5

2樓:匿名使用者

findpic 0,0,1024,768,"attachment:\1.bmp",0.9,intx,inty

if intx > 0 and inty > 0 then

//執行命令

else

findpic 0, 0, 1024, 768, "attachment:\2.bmp", 0.9, intx, inty

if intx > 0 then

//執行命令

else

findpic 0, 0, 1024, 768, "attachment:\3.bmp", 0.9, intx, inty

if intx > 0 then

//執行命令

else

findpic 0, 0, 1024, 768, "attachment:\4.bmp", 0.9, intx, inty

if intx > 0 then

//執行命令

else

//end if

end if

end if

end if

3樓:匿名使用者

//方法一:

findpic 0,0,1024,768,"attachment:\神盾1.bmp",0.9,intx,inty

if intx > 0 and inty > 0 then

call a()

end if

findpic 0,0,1024,768,"attachment:\神盾2.bmp",0.9,intx,inty

if intx > 0 and inty > 0 then

call a()

end if

findpic 0,0,1024,768,"attachment:\神盾3.bmp",0.9,intx,inty

if intx > 0 and inty > 0 then

call a()

end if

findpic 0,0,1024,768,"attachment:\神盾4.bmp",0.9,intx,inty

if intx > 0 and inty > 0 then

call a()

end if

//方法二:

for i=1 to 4

findpic 0,0,1024,768,"attachment:\神盾"&i&".bmp",0.9,intx,inty

if intx > 0 and inty > 0 then

call a()

exit for

end if

next

sub a()

end sub

4樓:匿名使用者

dofindcolor 871, 695, 878, 708, "04177e", 0, 0.9, intx, inty

if intx > 0 and inty > 0 then

traceprint "是否最大血量"&intx,inty

findpic 356, 633, 435, 706, "attachment:無名強身.png", "505050", 0, 0.8, intx, inty

if intx > 0 and inty > 0 then

traceprint "是否無名強身"&intx,inty

else

traceprint "沒有無名強身"&intx,inty

zm.settap

zm.tap 1026, 565

zm.delay 300, 1000

end if

delay 300

if intx > 0 and inty > 0 then

findpic 606,263,674,371,"attachment:人物1.png|attachment:

人物2.png|attachment:人物3.

png|attachment:人物4.png|attachment:

人物5.png|attachment:人物6.

png|attachment:人物7.png|attachment:

人物8.png","505050",0,0.7,intx,inty

traceprint "是否找到人物"&intx,inty

if intx > 0 and inty >0 then

zm.settap

zm.tap 1245, 567

zm.delay(300, 1000)

zm.tap 1154, 611

zm.delay 300, 1000

else

traceprint "沒有找到人物"&intx,inty

end if

delay 300

else

end if

delay 300

else

findpic 357,655,424,704, "attachment:無名強身.png", "202020", 0, 0.8, intx, inty

traceprint "是否無名強身"&intx,inty

if intx > 0 and inty > 0 then

findpic 356, 632, 428, 703, "attachment:伏式氣功.png", "000000", 0, 1.0, intx, inty

traceprint "是否伏式氣功"&intx,inty

if intx > 0 and inty > 0 then

traceprint "有伏式氣功"&intx,inty

else

findcolor 777,697,798,707,"232e36",0,0.95,intx,inty

traceprint "是否低血量"&intx,inty

if intx > 0 and inty > 0 then

zm.settap

zm.tap 1006, 660

zm.delay 300, 1000

else

traceprint "低血量"&intx,inty

end if

delay 300

end if

delay 300

else

findcolor 790,695,815,708,"051371",0,1.0,intx,inty

traceprint "是否血量低"&intx,inty

if intx > 0 and inty > 0 then

findpic 356, 632, 428, 703, "attachment:伏式氣功.png", "999999", 0, 0.7, intx, inty

traceprint "是否伏式氣功"&intx,inty

if intx > 0 and inty > 0 then

traceprint "伏式氣功執行"&intx,inty

else

zm.settap

zm.tap 1006, 660

zm.delay 300, 1000

end if

delay 300

else

traceprint "伏式氣功已經開啟"&intx,inty

end if

delay 300

end if

delay 300

end if

delay 300

loop

按鍵精靈條件時間判定問題

按鍵精靈9 如何無限迴圈然後條件跳出迴圈?

5樓:

do命令1

命令2找圖(******此處省略*****,intx,inty)if intx>0 and inty>0 thenexit do

end if

loop

其中 do loop 中間的命令會被無限迴圈,  exit do 這個命令 會終止當前的do 迴圈,直接跳轉到loop那行命令之後的命令

按鍵精靈是一款模擬滑鼠鍵盤動作的軟體,創立於2001年,由福建創意嘉和軟體****獨立運營。通過製作指令碼,可以讓按鍵精靈代替雙手,自動執行一系列滑鼠鍵盤動作。

按鍵精靈簡單易用,不需要任何程式設計知識就可以作出功能強大的指令碼。只要在電腦前用雙手可以完成的動作,按鍵精靈都可以替代完成。

6樓:

do命令1

命令2findpic 0,0,1024,768,"**路徑",0.9,intx,inty

if intx > 0 and inty > 0 thenexit do

end if

loop

7樓:匿名使用者

最好使用goto命令

按鍵精靈9如何無限迴圈然後條件跳出迴圈?

8樓:

do命令1

命令2找圖(******此處省略*****,intx,inty)if intx>0 and inty>0 thenexit do

end if

loop

其中 do loop 中間的命令會被無限迴圈,  exit do 這個命令 會終止當前的do 迴圈,直接跳轉到loop那行命令之後的命令

按鍵精靈是一款模擬滑鼠鍵盤動作的軟體,創立於2001年,由福建創意嘉和軟體****獨立運營。通過製作指令碼,可以讓按鍵精靈代替雙手,自動執行一系列滑鼠鍵盤動作。

按鍵精靈簡單易用,不需要任何程式設計知識就可以作出功能強大的指令碼。只要在電腦前用雙手可以完成的動作,按鍵精靈都可以替代完成。

按鍵精靈怎麼進行條件判斷啊,按鍵精靈如何實現多個條件判斷乙個結果

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...

求滑鼠連點(按鍵精靈),跪求按鍵精靈9後台滑鼠連點指令碼

303866097 幫你做個 跪求按鍵精靈9後台滑鼠連點指令碼 分太少,沒人願意做 你自己看教程,慢慢學拜 求按鍵精靈滑鼠連點的指令碼 求乙個按鍵精靈滑鼠左右連點指令碼 按鍵精靈怎麼設定滑鼠左鍵連點最快?你到底相要多快,預設的可是1秒1千下,我怕你的cpu會受不了的。也不知道做什麼要那麼快,跟本沒有...

按鍵精靈9控制代碼獲取後怎麼用

這裡說下按鍵精靈找控制代碼 hwnd plugin.window.mousepoint 這個語句你知道吧?是的滑鼠自動找控制代碼 我發現很多人新什麼什麼定義 hwnd 啊什麼的搞什麼的很麻煩 其實只要一句話就可以找到控制代碼 這裡我正題 你找點控制代碼後 你說的是簡單的對吧?所以呢只要在 左邊 全部...

按鍵精靈判斷語句不滿足條件怎麼重複執行?我的只執行一次

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...

求個按鍵精靈9的每120秒各按下3跟5鍵無限迴圈

滑鼠先放到遊戲視窗後再啟動指令碼 一般預設是f10 hwnd plugin.window.mousepoint dofor 120 delay 1000 next call plugin.bkgnd.keypress hwnd,51 delay 1000 call plugin.bkgnd.keyp...