AutoHotkey: Auto add URL to Background transfer manager: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 16: Line 16:
  Send, a
  Send, a
  return
  return
Back to [[AutoHotkey]]

Revision as of 00:23, 29 August 2005

With this script you can simply press "a" in the Background transfer manager window to add the URL in clipboard to the BTM list. The file will be downloaded to the current directory and focus will switch back to the previous application.

Intended usage:
Copy link address in the browser window, switch focus to the BTM and press "a".


$a::
IfWinActive, ahk_class DOWNDLGLIST2
{
	SetKeyDelay, 200
	Send, {NumpadAdd}{Up}{Enter}^v{Enter 2}!{Tab 2}
	; Change the delay below to whatever setting you use elsewhere in the script
	SetKeyDelay, -1
}
else
	Send, a
return


Back to AutoHotkey