Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2011
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; ******* INFO *******
  2. ; < AHKCLIPPER> - Instantly share your AHK clips
  3. ScriptVersion:=0.7
  4. ; Script created using Autohotkey (http://www.autohotkey.com)
  5. ; AUTHOR: sumon @ the Autohotkey forums, < simon.stralberg (@) gmail.com>
  6. ; SCRIPT FUNCTION: Press hotkey (ctrl shift c standard) to save selected AHK-text to  pastebin.com
  7. ;
  8. ; To-do-list:
  9. ;
  10. ;
  11. ;
  12.  
  13. ; ******* Initiate script *******
  14. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  15. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  16. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  17. #SingleInstance, Force
  18.  
  19.  
  20. ^ c::
  21. Send ^c
  22. ClipWait
  23. pastestring:=ClipBoard
  24. URL:="http://pastebin.com/api_public.php"
  25. POSTData := "paste_code=" pastestring "
  26. html := httpQUERY(URL,POSTDATA)
  27. Clipboard:=html
  28. TrayTip, AHKClipper, Added %Html%, 2, 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement