Win 7 x64
I created two similar hotkey sequences below for mp3tag. So, win+s (#s) brings up the inputbox and after providing it a number, it loops the mp3tag keyboard shortcuts and keypresses below. However, win+o (#o) does nothing. If I remove the contents of #s and replace it with contents from #o, #s now runs the keyboard shortcuts and keypresses that I earlier assigned to #o. To put it simply, it appears that there cannot be two different hotkeys calling mp3tag.exe; the first one that appears is the only one that will run. I am not using #s and #o simultaneously nor did I ever intend to do so initially. Am I missing something here?
Code: Select all
#s::
#IfWinActive ahk_exe Mp3tag.exe
InputBox, times, Number of tracks (more than on album)
if (times > 0) ; test if it is a number
{
Loop % times
{
Send !s ; alt+s to bring up tag sources menu
Send a
Send s
Send {Enter}
Send {Enter}
Sleep 1000
Send {Down}
} return
}
return
#o::
#IfWinActive ahk_exe Mp3tag.exe
InputBox, times, Number of tracks (more than on album)
if (times > 0) ; test if it is a number
{
Loop % times
{
Send !s ; alt+s to bring up tag sources menu
Send a
Send p
Send {Enter}
Send {Enter}
Sleep 1000
Send {Down}
} Send {Home}
Loop % times
{
Send !s
Send a
Send o
Send {Enter}
Send {Enter}
Sleep 1000
Send {Down}
} return
}
return