Search found 618 matches

by afe
16 Dec 2018, 02:46
Forum: Ask For Help
Topic: Where should I use "SetTitleMatchMode"? Topic is solved
Replies: 2
Views: 490

Where should I use "SetTitleMatchMode"? Topic is solved

Hello, Where should I use "SetTitleMatchMode" ? Or what is the scope of "SetTitleMatchMode"? If I put "SetTitleMatchMode, 3" in the first line of code, it will be valid for the entire code until the second "SetTitleMatchMode" appears, such as "SetTitleMatchMode, 1". Is that right? If "SetTitleMatchM...
by afe
15 Dec 2018, 09:53
Forum: Ask For Help
Topic: Decoding Base64 image failed Topic is solved
Replies: 8
Views: 1712

Re: Decoding Base64 image failed Topic is solved

I modified it a bit and tried to use "RtlFillMemory" but it still failed. I don't know where it is wrong. =========== It works now. Base64CharIndex(c) { static Base64CharSet := "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" return InStr(Base64CharSet, c, 1) - 1 } WriteToMemory(By...
by afe
15 Dec 2018, 06:52
Forum: Ask For Help
Topic: Decoding Base64 image failed Topic is solved
Replies: 8
Views: 1712

Re: Decoding Base64 image failed Topic is solved

@hd0202 , thank you very much! Great, numput is exactly what I want. Thank you!
by afe
14 Dec 2018, 09:05
Forum: Ask For Help
Topic: Decoding Base64 image and adding to GUI failed Topic is solved
Replies: 22
Views: 3270

Re: Decoding Base64 image and adding to GUI failed Topic is solved

just me wrote:
14 Dec 2018, 08:12
afe wrote: I want to decode a Base64 encoded image and add it to Gui without writing it to the hard disk.
So why do you want to call CreateFileA()?
Will this create a file in the current directory? If so, then I am completely wrong.
by afe
14 Dec 2018, 09:03
Forum: Ask For Help
Topic: Decoding Base64 image and adding to GUI failed Topic is solved
Replies: 22
Views: 3270

Re: Decoding Base64 image and adding to GUI failed Topic is solved

hd0202 wrote:
14 Dec 2018, 06:54
and you must use CreateFileW for 64-bit systems

Hubert
Thank you very much. I will try it again.
by afe
14 Dec 2018, 04:58
Forum: Ask For Help
Topic: Decoding Base64 image and adding to GUI failed Topic is solved
Replies: 22
Views: 3270

Decoding Base64 image and adding to GUI failed Topic is solved

Hello, I want to decode a Base64 encoded image and add it to Gui, but it doesn't work. Where is the problem? Thanks. Base64Dec(Code, FileName) { CodeLength := StrLen(Code) DllCall("Crypt32.dll\CryptStringToBinary" , "str", Code , "uint", CodeLength , "uint", 0x00000001 , "int", 0 , "uint*", buffer ,...
by afe
13 Dec 2018, 07:02
Forum: Ask For Help
Topic: Decoding Base64 image failed Topic is solved
Replies: 8
Views: 1712

Re: Decoding Base64 image failed Topic is solved

Yex, but there is a problem with thinking. Base64 converts every 3 binary bytes of the image into 4 Base64 characters. In turn, decoding requires converting every 4 Base64 characters to 3 binary bytes. But the problem arises, I mistakenly save these converted binary bytes into a variable " r ". This...
by afe
13 Dec 2018, 05:01
Forum: Ask For Help
Topic: Decoding Base64 image failed Topic is solved
Replies: 8
Views: 1712

Decoding Base64 image failed Topic is solved

Hello, I tried to decode a Base64 encoding of an image, but it didn't work. Where is the mistake? Thanks! Base64Char := "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" Base64Index(c) { Global Base64Char return InStr(Base64Char, c, CaseSensitive) - 1 } Base64Decode(str, ByRef Bytes...
by afe
13 Dec 2018, 03:40
Forum: Ask For Help
Topic: How to create a file in %temp%? Topic is solved
Replies: 3
Views: 728

Re: How to create a file in %temp%? Topic is solved

A_Temp is not a literal string, but used as a variable . Hence, in expressions (like in the parameter section of a function ) it has to separated from the literal string (and in expressions you don't use the %s). So... try: File := FileOpen(A_Temp "\1.txt", "w") msgbox % A_Temp "\1.txt" ; check wha...
by afe
12 Dec 2018, 02:16
Forum: Ask For Help
Topic: How to create a file in %temp%? Topic is solved
Replies: 3
Views: 728

How to create a file in %temp%? Topic is solved

Hello, I want to create a file in the %temp% temporary directory of Windows, but the following two are invalid. Where is the mistake? Thanks. File := FileOpen("%A_Temp%\1.txt", "w") File.Write("d") File.Close() return File := FileOpen("%Temp%\1.txt", "w") File.Write("d") File.Close() return But in t...
by afe
10 Dec 2018, 02:41
Forum: Ask For Help
Topic: Cannot find ClassNN
Replies: 2
Views: 576

Re: Cannot find ClassNN

Thank you very much. This is a great tool.
However, the information of the button is still not available. I guess it's not a standard Windows button, so I can't get its information through Window Spy.
by afe
10 Dec 2018, 01:30
Forum: Ask For Help
Topic: Cannot find ClassNN
Replies: 2
Views: 576

Cannot find ClassNN

Hello everyone, Open a child window by clicking the button in a window. However, if the name, text, or ClassNN of the button cannot be obtained through Window Spy, there is no other way to open its child window except for clicking through the mouse and coordinates. Or is there a way to get a Hwnd fr...
by afe
10 Dec 2018, 00:28
Forum: Ask For Help
Topic: Window zoom invalid Topic is solved
Replies: 2
Views: 399

Re: Window zoom invalid Topic is solved

Thank you very much. It is for this reason.
Thank you for your advice.
by afe
09 Dec 2018, 12:41
Forum: Ask For Help
Topic: Window zoom invalid Topic is solved
Replies: 2
Views: 399

Window zoom invalid Topic is solved

Hello everyone, When I named the button lowercase "ftp", I encountered a strange phenomenon. When I click on it, the ftp address in the clipboard is written to Edit box. Zooming the window at this point, the buttons and the edit box cannot move and scale as expected. But when there is no ftp address...
by afe
09 Dec 2018, 11:20
Forum: Ask For Help
Topic: RegExMatch error Topic is solved
Replies: 4
Views: 624

Re: RegExMatch error Topic is solved

Thank you very much.
by afe
09 Dec 2018, 10:03
Forum: Ask For Help
Topic: RegExMatch error Topic is solved
Replies: 4
Views: 624

Re: RegExMatch error Topic is solved

It should be "a". I forgot "", I have corrected it.

Thank you very much. Now working fine.


I now know that double quotes need to be escaped. The official manual does not seem to mention that double quotes need to be escaped, and I always thought that the escape character must be \.

Thanks again.
by afe
09 Dec 2018, 08:01
Forum: Ask For Help
Topic: RegExMatch error Topic is solved
Replies: 4
Views: 624

RegExMatch error Topic is solved

Hello everyone, I want to match all ASCII printable characters. But this script can't pass. Where is the mistake? I have already escaped \.*?+[]{}|()^$. Also I have tried using \Q...\E, but the problem remains. I'm confused. Thanks. Haystack := "a" RegExMatch(Haystack, "i)[0-9A-Z\s!"#\$%&'\(\)\*\+,-...

Go to advanced search