Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; ******* INFO *******
- ; < AHKCLIPPER> - Instantly share your AHK clips
- ScriptVersion:=0.7
- ; Script created using Autohotkey (http://www.autohotkey.com)
- ; AUTHOR: sumon @ the Autohotkey forums, < simon.stralberg (@) gmail.com>
- ; SCRIPT FUNCTION: Press hotkey (ctrl shift c standard) to save selected AHK-text to pastebin.com
- ;
- ; To-do-list:
- ;
- ;
- ;
- ; ******* Initiate script *******
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- #SingleInstance, Force
- ^ c::
- Send ^c
- ClipWait
- pastestring:=ClipBoard
- URL:="http://pastebin.com/api_public.php"
- POSTData := "paste_code=" pastestring "
- html := httpQUERY(URL,POSTDATA)
- Clipboard:=html
- TrayTip, AHKClipper, Added %Html%, 2, 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement