topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 11, 2024, 10:54 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Open clipboard content with program.  (Read 4631 times)

guerillablood

  • Participant
  • Joined in 2013
  • *
  • default avatar
  • Posts: 12
    • View Profile
    • Donate to Member
Open clipboard content with program.
« on: March 20, 2015, 05:55 PM »
To be as simple as possible, I'm looking for a program or an AHK script that can take the contents of the clipboard and send it to a program to be opened in.

My idea is basically: copy/paste a URL to a video and then following a key combination or clicking on a tray icon, send it to my installation of MPV (as it streams a wider variety of web videos than say, VLC).

I don't know the mileage of this beyond sending youtube/dailymotion links to mpv, but the avoidance of flash player alone would be helpful. You set a file path (or maybe several paths for different file types), copy a URL to a video/image/document, and then hit a key combination or click a tray context menu to paste the link from the clipboard into the program's launch path. I know this is possible because of browser addons for Firefox and Chrome like OpenWith, but those require you to be inside of the browser, looking at an embedded link. A file inside of a flash player or raw URL in an instant message are unable to utilize this function.
« Last Edit: March 20, 2015, 08:45 PM by guerillablood »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Open clipboard content with program.
« Reply #1 on: March 20, 2015, 06:01 PM »
My AHK script "SelectoSurf" does almost exactly this.  You could easily modify the AHK script to launch your app instead of the default browser.

guerillablood

  • Participant
  • Joined in 2013
  • *
  • default avatar
  • Posts: 12
    • View Profile
    • Donate to Member
Re: Open clipboard content with program.
« Reply #2 on: March 20, 2015, 08:44 PM »
Works like a charm. Thank you Mouser! :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Open clipboard content with program.
« Reply #3 on: March 20, 2015, 08:52 PM »
np  :up: