推 ScorAlan:CompiledScript.exe [Script Parameters] 10/09 17:12
→ ScorAlan:[Script Parameters]裡面放1 or 2 or 3 or 4 10/09 17:14
→ ScorAlan:在還沒有compile之前,加入這兩句做為外加參數判斷 10/09 17:16
→ ScorAlan:loop,%0% 10/09 17:19
→ ScorAlan:Pparameter:=%A_Index% 10/09 17:19
→ ScorAlan:Pparameter即為你丟入的1 or 2 or 3 or 4.... 10/09 17:21
→ phase999:嗯 大概有個方向了 10/12 16:17
→ phase999:可以順便問下是寫成這樣嗎? 10/12 16:18
→ phase999:loop,%0% 10/12 16:18
→ phase999:{Pparameter:=%A_Index% 10/12 16:19
→ phase999:if(s == 1) ;上 10/12 16:19
→ phase999:{ 執行上 10/12 16:20
→ phase999:} 10/12 16:20
推 ScorAlan:if (Pparameter == 1) 10/12 17:19
→ ScorAlan:msgbox,放入的參數為1(代表上) 10/12 17:19
→ ScorAlan:if (Pparameter == 2) 10/12 17:20
→ ScorAlan:msgbox,放入的參數為2(代表下) 10/12 17:20
→ ScorAlan:if (Pparameter == 3) 10/12 17:20
→ ScorAlan:msgbox,放入的參數為3(代表右) 10/12 17:21
→ ScorAlan:if (Pparameter == 4) 10/12 17:21
→ ScorAlan:msgbox,放入的參數為4(代表左) 10/12 17:21
→ ScorAlan:if(s == 1) ;上 這行的s改為Pparameter就可以了 10/12 17:23
→ phase999:可以請問一下Pparameter:=%A_Index%這句,後面的%A_Index 10/13 10:39
→ phase999:%是什麼意思? 10/13 10:40
→ phase999:還有想再問一個問題,就是如何把C++的變數,丟到AHK裡?? 10/13 10:50