[請問] 按精腳本編寫

看板EzHotKey作者 (RELAX)時間12年前 (2013/09/23 12:34), 編輯推噓0(003)
留言3則, 2人參與, 最新討論串1/2 (看更多)
各位前輩大安 小弟為了玩遊戲,寫了個腳本, 主要是遇到不同圖有不同滑鼠反應 但是覺得速度不滿意, (因為有其他玩家寫出來的腳本,竟然比用手點還快.....百思不得其解...) 所以想請教一下我的腳本部分是否可以修正,如下 (sorry,排版有點跑掉,可以看前面就好,主要就是else, if一直用下去) 感恩 i=1 While i=1 IfColor 927,698,"11AA",2 Then MoveTo 927, 698 LeftClick 1 Else IfColor 784, 467, "44AF", 0 Then MoveTo 771, 693 LeftClick 1 Else IfColor 1047,374,"667777",0 Then MoveTo 1093, 695 LeftClick 1 Else IfColor 891,462,"786C1",2 Then LeftClick 1 Else IfColor 705,688,"32",0 Then MoveTo 705, 688 LeftClick 1 Else IfColor 714,456,"2E77BB",0 Then Delay 50 MoveTo 1132, 564 Delay 50 LeftClick 1 Else IfColor 814,572,"66A8",0 Then MoveTo 814, 572 LeftClick 1 Else IfColor 1028,178,"11AAEE",0 Then MoveTo 1093, 695 LeftClick 1 Else IfColor 1008,414,"D376D",0 Then Delay 50 LeftClick 1 Else IfColor 715,472,"CCB122",0 Then MoveTo 1127, 565 Delay 50 LeftClick 1 Delay 1000 MoveTo 1073, 809 Delay 500 LeftClick 1 Else IfColor 907,453,"323D76",0 Then Delay 50 LeftClick 1 Else IfColor 1199,405,"B0EDFF",0 Then MoveTo 1199, 405 Delay 50 LeftClick 1 Else IfColor 885,490,"AA70A3",0 Then MoveTo 771, 693 LeftClick 1 Else IfColor 860,193,"1335E9",0 Then Delay 50 LeftClick 1 Else IfColor 933,323,"E00B6",0 Then Delay 50 LeftClick 1 Else IfColor 979,463,"A0DA0",0 Then LeftClick 1 Else IfColor 712,341,"1DAFFF",0 Then LeftClick 1 Else IfColor 1151,151,"65A9",0 Then MoveTo 1151, 151 LeftClick 1 Else IfColor 1207,300,"B0EDFF",0 Then MoveTo 1207, 300 LeftClick 1 Else IfColor 1063,151,"2BFFD",0 Then MoveTo 1063, 151 Delay 50 LeftClick 1 Else IfColor 1114,163,"8FC8E3",0 Then MoveTo 1893, 6 LeftClick 1 Else IfColor 902,692,"ADCCFF",0 Then MoveTo 902, 692 Delay 500 LeftClick 1 Else IfColor 922,794,"66AA",0 Then MoveTo 922, 794 Delay 500 LeftClick 1 Delay 3000 Else IfColor 852,959,"FCB72A",0 Then MoveTo 723, 328 Delay 1000 LeftClick 1 Delay 10000 Else IfColor 1231,543,"73909",0 Then MoveTo 1231, 543 LeftDown 1 Delay 1000 MoveR 0, -300 LeftUp 1 Delay 1000 Else IfColor 853,301,"CFD7DB",0 Then MoveTo 853, 301 Delay 1000 LeftClick 1 Delay 5000 Else IfColor 437,438,"471454",0 Then MoveTo 1089, 128 LeftClick 1 Else IfColor 1015,549,"10C887",0 Then MoveTo 1152, 572 Delay 50 LeftClick 1 Else IfColor 928,477,"88555B",0 Then MoveTo 928, 477 LeftClick 1 Else IfColor 962,458,"131339",0 Then MoveTo 962, 458 LeftClick 1 Else IfColor 907,464,"D6AA22",2 Then MoveTo 907, 464 LeftClick 1 Else IfColor 985,477,"949888",0 Then Delay 1000 MoveTo 1893, 8 LeftClick 1 Else End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If End If Wend -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 1.34.13.251

09/23 20:55, , 1F
真是驚人的End If XD
09/23 20:55, 1F

09/23 23:13, , 2F
請問大大我該怎麼寫瘦身語句 @@
09/23 23:13, 2F

09/24 09:05, , 3F
呃 我沒用過按鍵精靈...sorry
09/24 09:05, 3F
文章代碼(AID): #1IFyJSwd (EzHotKey)
文章代碼(AID): #1IFyJSwd (EzHotKey)