Search found 618 matches

by afe
15 Oct 2019, 14:06
Forum: Other Programming Languages
Topic: Please delete this post
Replies: 1
Views: 3104

Please delete this post

Please delete this post
by afe
15 Oct 2019, 13:00
Forum: Ask For Help
Topic: What is a byte array and how to call this dll file?
Replies: 10
Views: 1435

Re: What is a byte array and how to call this dll file?

Thank you for your guidance, I have to think about it.
by afe
13 Oct 2019, 11:23
Forum: Ask For Help
Topic: What is a byte array and how to call this dll file?
Replies: 10
Views: 1435

What is a byte array and how to call this dll file?

Hello, Converting a file to a byte array means reading the file into memory, then assigning the first byte in memory to the first element of the array, and so on? If so, I want to pass it to a ocr.dll. I don't know much about this dll file, and the documentation is very bad. This is an example of ca...
by afe
13 Oct 2019, 04:24
Forum: Ask For Help
Topic: Is it possible to read a binary file using FileRead?
Replies: 3
Views: 494

Re: Is it possible to read a binary file using FileRead?

I want to get its binary code, exactly hex. It seems that FileRead can't get the binary code of the file, but File.RawRead does this.
by afe
12 Oct 2019, 06:09
Forum: Ask For Help
Topic: Is it possible to read a binary file using FileRead?
Replies: 3
Views: 494

Is it possible to read a binary file using FileRead?

Hello, When I opened a software-generated file with FileRead, I found that AHK displayed a different result than I did with Notepad. Even if you use the *Pnnn option to match the previous part of Notepad, you won't get it later. Why? TEST.txt (The .txt extension is added by me and seems to be not co...
by afe
12 Oct 2019, 05:40
Forum: Ask For Help
Topic: How to convert a string to hex?
Replies: 6
Views: 1151

Re: How to convert a string to hex?

Both methods do not get the expected value. Maybe I should change the title to "How to convert a binary file to hex?". Because the string to be converted in the file is not ASCII or other characters. When I read with FileRead, I can't get a consistent string, even after using the *Pnnn option. Why i...
by afe
11 Oct 2019, 10:29
Forum: Ask For Help
Topic: How to convert a string to hex?
Replies: 6
Views: 1151

Re: How to convert a string to hex?

Thank you. Although DllCall is faster, I always want to avoid using it to reduce external dependencies.
by afe
11 Oct 2019, 08:58
Forum: Ask For Help
Topic: How to convert a string to hex?
Replies: 6
Views: 1151

How to convert a string to hex?

Hello, How to convert a string to hex? I think it's easier to convert a string to a binary first, then convert the binary to hex. Is there a faster algorithm that converts directly to hex? Or a fast algorithm that converts binary to hexadecimal. For example, convert the string in this file to HEX: h...
by afe
09 Oct 2019, 07:07
Forum: Other Programming Languages
Topic: How to decrypt AES using OpenSSL? [Solved]
Replies: 2
Views: 3015

Re: How to decrypt AES using OpenSSL?

Now I don't have time to learn JS, and most of the time JS can't run alone outside the webpage, so I have to translate.
by afe
08 Oct 2019, 14:01
Forum: Other Programming Languages
Topic: How to decrypt AES using OpenSSL? [Solved]
Replies: 2
Views: 3015

How to decrypt AES using OpenSSL? [Solved]

Hello,

How to decrypt AES using OpenSSL?

Edit: Solved
by afe
08 Oct 2019, 08:42
Forum: Other Programming Languages
Topic: Can anyone explain what this code does?
Replies: 3
Views: 3403

Re: Can anyone explain what this code does?

Thank you! It turns out that this is only part of the code, and name should be a variable.
by afe
06 Oct 2019, 11:33
Forum: Other Programming Languages
Topic: Can anyone explain what this code does?
Replies: 3
Views: 3403

Can anyone explain what this code does?

Hello, I want to describe it with ahk, but the JS grammar is really confusing. I have to ask for help. I want to start with n(), but I got stuck here at the beginning. var n = function() { var r; var s = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); if (r = document.cookie.match(s)) { return unescap...
by afe
06 Oct 2019, 11:10
Forum: Ask For Help
Topic: JS to AHK question Topic is solved
Replies: 21
Views: 2995

Re: JS to AHK question Topic is solved

No, I am worried that I am still at a loss after the algorithm changes.
by afe
05 Oct 2019, 11:37
Forum: Ask For Help
Topic: JS to AHK question Topic is solved
Replies: 21
Views: 2995

Re: JS to AHK question Topic is solved

Thank you for your explanation. I will understand it carefully. But I still can't figure how it works now. I don't know much about class yet, but I still learned it when I was learning C++, but I have never used it. What is the function of "class ActiveScript extends" in your code? Since function(p)...
by afe
05 Oct 2019, 10:19
Forum: Ask For Help
Topic: JS to AHK question Topic is solved
Replies: 21
Views: 2995

Re: JS to AHK question Topic is solved

Do I just need to replace outerHtml to get the value of jschl-answer correctly? I do not know Your target site. You have to check it by Yourself. Great! It works perfectly! Even with new requests, the results are accurate! Thank you again for your contribution! :thumbup: It may take me a while to u...
by afe
05 Oct 2019, 09:54
Forum: Ask For Help
Topic: JS to AHK question Topic is solved
Replies: 21
Views: 2995

Re: JS to AHK question Topic is solved

Great! I tested it right away. And why doesn't ComObjCreate("WinHttp.WinHttpRequest.5.1") automate validation and jump like a browser? Edit: Great! It works fine! Do I just need to replace outerHtml to get the value of jschl-answer correctly? Because the value of k is changed every time, the CdbGwcy...
by afe
05 Oct 2019, 09:34
Forum: Ask For Help
Topic: JS to AHK question Topic is solved
Replies: 21
Views: 2995

Re: JS to AHK question Topic is solved

No, I have not tested yet. Thank you very much. I am not familiar with JS, so it may take me a while to understand your code.

I was going to use JS to calculate it, it seems that this is not possible.
by afe
05 Oct 2019, 06:27
Forum: Ask For Help
Topic: JS to AHK question Topic is solved
Replies: 21
Views: 2995

Re: JS to AHK question Topic is solved

Great! The problem does appear on eval . I have to think about whether the eval must depend on the web page to run. If eval is resolved, the problem is solved. Edit: eval(eval(document.getElementById(k).innerHTML)); As you said, function(p) needs to get data from the web page. Eidt: Fortunately func...
by afe
04 Oct 2019, 15:21
Forum: Ask For Help
Topic: JS to AHK question Topic is solved
Replies: 21
Views: 2995

Re: JS to AHK question Topic is solved

malcev , thank you for your reply, but it is too complicated, I don't understand. I want to calculate it directly using JS. Here is the JS after I removed the section related to the page, but in the Chrome console, I still can't get the expected value. Why ? Is this related to document.addEventList...
by afe
04 Oct 2019, 15:19
Forum: Ask For Help
Topic: cloudflare bypass
Replies: 3
Views: 2078

Re: cloudflare bypass

I tried to open the target page using IE but it failed. The reason is that I need to open the page in InPrivate mode, although this can be done, but if so, I will not be able to get the cookie or the source code of the page. And this method is too inefficient. So the only way now is to calculate the...

Go to advanced search