ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: Hotkey copy filename then append it to a URL in clipboard for pasting

(1/1)

XpFMk:
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.

skwire:
Here you go.  Adjust as necessary.


--- Code: Autohotkey ---#c::{    SendInput, ^c ; Copy image path to clipboard.    SplitPath, Clipboard, myFileName ; Get filename from the path.    Clipboard := "http://www.site.com/" . myFileName ; Concatenate string and copy it to the clipboard.}Return

XpFMk:
Thank you very much   :)

Navigation

[0] Message Index

Go to full version