.FTM(FamiTracker)ファイルを.WAVに一括変換するプロセスを自動化するAutoHotKeyのプログラムに取り組んでいます。問題は、「send {down}」ステートメントの値をループごとに+1(フォルダー内の次の曲を選択するため)にインクリメントしたいということです。
編集コードを更新しました。インクリメントステートメントは機能します。フォルダ内のすべてのファイルを変換するために必要な回数だけプログラム全体をループさせる方法を見つける必要があります(各ループを{down}送信するために+1を追加します)。現在の問題は、プログラム全体がループしていないことです。 どんな助けでも大歓迎です!
FamiTracker音楽アプリケーションを起動した後のプログラムの外観の抜粋を次に示します。
Sleep, 800 ; I want the program to loop back to here when it reaches the last line
click 20,30 ; clicks "file"
Sleep, 500
Send {down 2} ; clicks "open"
send {enter}
Sleep, 1200
click 211,128 ; clicks first filename in folder
Sleep, 1200
send {enter}
Sleep, 1000
click 20,30 ; clicks "file"
send {down 6}
send {enter} ; clicks "create wav"
Sleep, 1000
click 157,57 ; increase playcount to 2
Sleep, 500
send {enter}
Sleep, 1000
send {enter}
Sleep, 2500
send {enter}
click 20,30 ; clicks "file"
Sleep, 500
Send {down 2} ; clicks "open"
send {enter}
Sleep, 1200
click 211,128 ; clicks first filename in folder
Sleep, 1000
Jmp:=1
Loop
{
Send, {Down %Jmp%}
Jmp+=1
return
}
sleep, 100
send {enter}
Sleep, 1000
click 20,30 ; clicks "file"
send {down 6}
send {enter} ; clicks "create wav"
Sleep, 1000
click 157,57 ; increase playcount to 2
Sleep, 500
send {enter}
Sleep, 1000
send {enter}
Sleep, 2500
send {enter}
Sleep, 1000 ; final line of code, want it to loop back to line 1 to repeat process till all files in folder are converted
私はかなり長い間立ち往生しています、何かアイデアはありますか?私は基本的に、プログラムの各ループの後にカーソルを次の曲に移動させたいと思っています。プログラムが最初に実行されると、song1がロードされ、song1が終了すると、プロセスが繰り返されますが、続行してsong2をクリックします。
どうもありがとう