Hello, I am new here, and I would like to run a program which can read one or two short lines of text from Pastebin PRIVATE paste....I have found somewhere here this nice and simple code:
#include <MsgBoxConstants.au3> Example() Func Example() ; Read the file without downloading to a folder. The option of 'get the file from the local cache' has been selected. Local $dData = InetRead("http://pastebin.com/raw.php?i=tspvr1Cw") ; The number of bytes read is returned using the @extended macro. Local $iBytesRead = @extended ; Convert the ANSI compatible binary string back into a string. Local $sData = BinaryToString($dData) ; Display the results. MsgBox($MB_SYSTEMMODAL, "", "The number of bytes read: " & $iBytesRead & @CRLF & @CRLF & $sData) ConsoleWrite("Raw Paste: " & $iBytesRead & @CRLF & @CRLF & $sData) MsgBox($MB_SYSTEMMODAL, "", $sData) EndFunc ;==>Example
But, I am getting this at msgbox and console : Error, this is a private paste. If this is your private paste, please login to Pastebin first
I have tried to put my Pastebin credentials here:
but to no avail!
All I want is to read from my private Pastebin.....I do not want to be able to create pastes....ONLY TO READ and pass the paste text to variable as string.
I would really appreciate help on this....I am new to autoit scripting and I would like to extend my knowledge!
Thank you all in advance!