MP3Tag: First hotkey words fine, second won't initiate

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
theta_wave
Posts: 2
Joined: 28 Apr 2017, 01:06

MP3Tag: First hotkey words fine, second won't initiate

28 Apr 2017, 01:23

Autohotkey v1.0.48.05
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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 260 guests