Welcome Guest.   Make a donation to an author on the site October 20, 2014, 05:51:08 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Read the full one-year retrospective report on DonationCoder.com.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: DONE: Hotkey copy filename then append it to a URL in clipboard for pasting  (Read 4030 times)
XpFMk
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« on: July 31, 2010, 11:07:08 PM »

First off, I'd be very grateful to anyone who may do this. I've tried to read up some about how to do this using AHK but don't know where to begin.

What it would do: You select a file and press a hotkey (left winkey & C would be nice) it then copies the filename eg: image.jpg to clipboard and prefixes a set url to it.
End result would hopefully be hxxp://examplewebsite.info/image.jpg that you could use the normal ctrl+v to paste into an IM window.
It would be very nice for those who have a little web server off a home computer and send links to friends/family very often. It saves quite a bit of time in the long run. In the past year I've taken over 3,800 screenshots and linked every single one of them by typing out the full url and file name by hand.
Preferably in .ahk rather than .exe so the url can be easily edited.

I truly thank you for your time.
Logged
skwire
Global Moderator
*****
Posts: 4,111



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: July 31, 2010, 11:20:55 PM »

Here you go.  Adjust as necessary.

Formatted for Autohotkey with the GeSHI Syntax Highlighter [copy or print]
  1. #c::
  2. {
  3.    SendInput, ^c ; Copy image path to clipboard.
  4.    SplitPath, Clipboard, myFileName ; Get filename from the path.
  5.    Clipboard := "http://www.site.com/" . myFileName ; Concatenate string and copy it to the clipboard.
  6. }
« Last Edit: July 31, 2010, 11:22:36 PM by skwire » Logged

XpFMk
Participant
*
Posts: 2

View Profile Give some DonationCredits to this forum member
« Reply #2 on: July 31, 2010, 11:22:44 PM »

Thank you very much   smiley
Logged
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.041s | Server load: 0.02 ]