Advertisement
VADemon

ScreenCaptor

Aug 25th, 2013
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.58 KB | None | 0 0
  1. If $CmdLine[0]>1 then
  2.     Local $filename = StringTrimLeft($CmdLine[1], StringInStr($CmdLine[1], "\", 0, -1)) ; search for the last \ and trim everything on the left of it
  3.     Local $url = $CmdLine[2]
  4.    
  5.     ClipPut($url & $filename)
  6.     ;ClipPut("https://dl.dropbox.com/u/55553666/screenshots/myFile.png") - that's what finished string looks like
  7. elseif $CmdLine[0] == 1 then
  8.     beep(700,100)
  9.     MsgBox(0, "Not enough arguments", "Your URL (prefix) is missing as 2nd argument!")
  10. else
  11.     beep(700,100)
  12.     MsgBox(0, "No arguments passed", "You must pass a filename (1) and URL (2) as arguments!")
  13. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement