Welcome Guest.   Make a donation to an author on the site August 27, 2014, 08:12:25 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 Practical Guide to DonationCoder.com Forum Search Features
   
   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 3915 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
Moderator
*****
Posts: 4,035



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.05s | Server load: 0.44 ]