Wow, thanks a lot! Great work, again!
I modified it slightly so it could be added to the main AHK script, and now you could use ESC to close the GUI showing the URL - I'm a keyboard user
; https://www.donationcoder.com/forum/index.php?topic=2811.new;topicseen#new
; PasteBinPost.ahk
; Press Win+S to post your clipboard contents to PasteBin.com and return the URL
;Installation:
; Download and install AutoHotkey from http://www.autohotkey.com
; Add this code to your script by right-clicking the tray icon --> Edit This Script
; Then save and --> Reload This Script
; Download WGet.exe from http://users.ugent.be/~bpuype/wget/#download
;Skrommel @2006
;#SingleInstance,Force
;SetBatchLines,-1
;SetFormat,Integer,Hex
;Return
#s:: ;Hotkey Win+S
SetBatchLines,-1
SetFormat,Integer,Hex
TrayTip,PasteBinPost,Posting to PasteBin.com...
in:=Clipboard
out=
Loop,Parse,in
{
Transform,char,Asc,%A_LoopField%
StringRight,char,char,2
out=%out%`%%char%
}
StringReplace,out,out,x,0,All
time:=A_Now
RunWait,WGET.exe --directory-prefix=%time%/ --post-data 'parent_pid=&format=text&code2=%out%&poster=&paste=Send' http://pastebin.com/
Loop,%time%\*.*
file:=A_LoopFileName
Gui,Add,Edit,,http://pastebin.com/%file%
Gui,Add,Button,GCOPY,&Copy
Gui,Show,,PasteBinPost
TrayTip,
Return
COPY:
Gui,Submit
Clipboard=http://pastebin.com/%file%
GuiEscape:
GuiClose:
FileRemoveDir,%time%,1
Gui, Destroy
Return