Page 1 of 1

Pastebin how to open a file with using a password

Posted: 18 Aug 2022, 03:34
by bapl
This code checks the link for the presence of the word On

Code: Select all

gaycheck("https://pastebin.com/raw/url", "On")
gaycheck(link, word)    {
oWhr := ComObject("WinHttp.WinHttpRequest.5.1")
oWhr.Open("GET", link, false)
oWhr.Send()
if (oWhr.ResponseText != word)    {
TrayTip("Error")
ExitApp
}
}

If you add a password to a Pastebin file, how can I find out the data about this file with a password?
Any help, please.

Re: Pastebin how to open a file with using a password

Posted: 18 Aug 2022, 09:10
by gregster
Is this really AHK_H related, or just posted in the wrong subforum?
If the former, in what sense? If the latter, it can be moved.

Re: Pastebin how to open a file with using a password

Posted: 18 Aug 2022, 13:52
by bapl
gregster wrote:
18 Aug 2022, 09:10
Is this really AHK_H related, or just posted in the wrong subforum?
If the former, in what sense? If the latter, it can be moved.
I fixed the code.

At the same time I have to add a password entry line for Pastebin.
How do I do this?