Search found 149 matches

by autocart
13 Aug 2019, 04:22
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 606
Views: 139631

Re: Suggestions on documentation improvements

One question, though: What would be an example for If conversion between code pages is necessary, the length of the return value may differ from the length of the source string. ? This is *not* talking about bytes, but is talking about characters, right? I strongly suppose it means the length in ch...
by autocart
26 Jun 2019, 04:38
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 606
Views: 139631

Re: Suggestions on documentation improvements

I implemented your suggestions. ... For example, if you convert a string with a length of 10 characters to UTF-16, the converted string would only be 5 characters long, and vice versa. 1) I am glad I could contribute. 2) That's exactly why I asked. The thing here is that the length of bytes will ch...
by autocart
25 Jun 2019, 14:04
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 606
Views: 139631

Re: Suggestions on documentation improvements

Ok, I saw something else: String := StrGet(Target [, Length] [, Encoding := None]) ... Encoding Type: String The source encoding; for example, "UTF-8", "UTF-16" or "CP936". If Target and Length are not specified , numeric identifiers must be prefixed with "CP". Specify an empty string or "CP0" to us...
by autocart
25 Jun 2019, 13:47
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 606
Views: 139631

Re: Suggestions on documentation improvements

You're right, they should be included. Thx for the confirmation. Regarding StrGet / StrPut: Changes of this size should be submitted via pull request on GitHub to get a better overview of what exactly you have changed. In my opinion, I don't see any significant improvement here. Also, the boxes in ...
by autocart
25 Jun 2019, 06:15
Forum: Scripts and Functions
Topic: WatchFolder() - updated on 2016-11-30
Replies: 61
Views: 23443

Re: WatchFolder() - updated on 2016-11-30

THANK YOU, just me! If I may make a suggestion for the sample file, I would disable the checkboxes while it is running, so it is clear that un/checking them makes no difference unless restarted, because then they can't be un/checked while it is running. BTW, is there a specific reason to why SetBatc...
by autocart
25 Jun 2019, 03:27
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 606
Views: 139631

Re: Suggestions on documentation improvements

Compare https://www.autohotkey.com/docs/misc/WinTitle.htm#LastFoundWindow with https://www.autohotkey.com/docs/commands/WinGet.htm#List and https://www.autohotkey.com/docs/commands/WinGet.htm#Count Since, https://www.autohotkey.com/docs/misc/WinTitle.htm#LastFoundWindow already lists where LastFound...
by autocart
22 Jun 2019, 12:19
Forum: Scripts and Functions
Topic: WinClip - AHKv2 Compatibility
Replies: 18
Views: 2494

Re: WinClip - AHKv2 Compatibility

One addition to the WinClip.ahk library: I am not sure, whether the text in the Rich Text Format clipboard format should be null-terminated. (This site https://www.codeproject.com/Reference/1091137/Windows-Clipboard-Formats might indicate that IMO, but I could be wrong.) Still, as far as I could see...
by autocart
21 Jun 2019, 19:06
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 606
Views: 139631

Re: Suggestions on documentation improvements

STRPUT/STRGET - Under 'Encoding', for complete clarity, it should say something like: - If Encoding is not specified, it is UTF-16 (on Unicode versions) or CP0 (on ANSI versions). - More details, here: Basic question about the string terminator in ahk - AutoHotkey Community https://autohotkey.com/b...
by autocart
21 Jun 2019, 15:14
Forum: Ask For Help
Topic: Basic question about the string terminator in ahk Topic is solved
Replies: 22
Views: 1450

Re: Basic question about the string terminator in ahk Topic is solved

Never mind, sorry,

it works if I put

Code: Select all

VarSetCapacity(address, StrPut(string))
;respectively
VarSetCapacity(address, StrPut(string) * 2)
instead of

Code: Select all

address := ""
by autocart
21 Jun 2019, 14:41
Forum: Ask For Help
Topic: Basic question about the string terminator in ahk Topic is solved
Replies: 22
Views: 1450

Re: Basic question about the string terminator in ahk Topic is solved

[EDIT] Never mind. Found the answer in the next post on the next page.[/EDIT] Help, this test example with a 20 char string does not work right: string := "12345678901234567890" ;"TEST" address := "" StrPut(string, &address, 21) InputBox, OutputVar, , , , , , , , , , % """" StrGet(&address) """" The...
by autocart
21 Jun 2019, 07:04
Forum: Wish List
Topic: Suggestions on documentation improvements
Replies: 606
Views: 139631

Re: Suggestions on documentation improvements

Doc states: A_ScriptDir The full path of the directory where the current script is located. The final backslash is omitted (even for root directories). A_ScriptName The file name of the current script, without its path, e.g. MyScript.ahk. A_ScriptFullPath The combination of the above two variables ...
by autocart
21 Jun 2019, 04:39
Forum: Ask For Help
Topic: Basic question about the string terminator in ahk Topic is solved
Replies: 22
Views: 1450

Re: Basic question about the string terminator in ahk Topic is solved

Got it. You were referring only to that particular example. I thought that was a general statement. Thx.
by autocart
21 Jun 2019, 03:51
Forum: Ask For Help
Topic: Basic question about the string terminator in ahk Topic is solved
Replies: 22
Views: 1450

Re: Basic question about the string terminator in ahk Topic is solved

Hi all,
thx for all of your feedback.
Helgef wrote:
21 Jun 2019, 01:39
(Edit: Disregarding that the string is not guaranteed to be null terminated on Unicode build, which could cause undefined behaviour ;) )
Are you saying that StrPut will sometimes add a null-terminator and sometimes not?
by autocart
20 Jun 2019, 16:24
Forum: Scripts and Functions
Topic: WinClip - AHKv2 Compatibility
Replies: 18
Views: 2494

Re: WinClip - AHKv2 Compatibility

If someone is interested, I posted this related question here:
WinClip.Snap(clipData) lost, when saving clipData to an array  (https://www.autohotkey.com/boards/viewtopic.php?f=76&t=65568)

(Did not want to unnecessarily clutter this thread, therefore opened a new thread for that question.)
by autocart
20 Jun 2019, 16:00
Forum: Ask For Help
Topic: Basic question about the string terminator in ahk Topic is solved
Replies: 22
Views: 1450

Re: Basic question about the string terminator in ahk Topic is solved

Thank u very much, teadrinker,

do u think it is different in the Unicode version since u wrote "(in ANSI)"?
by autocart
20 Jun 2019, 15:52
Forum: Ask For Help
Topic: Basic question about the string terminator in ahk Topic is solved
Replies: 22
Views: 1450

Re: Basic question about the string terminator in ahk Topic is solved

Thx and in the ANSI version, I assume it is a one byte null character?

Besides, if I wrote the string to memory somehow without a null-terminator character at all, and I don't specify a length in StrGet, what happens then?
by autocart
20 Jun 2019, 14:51
Forum: Scripts and Functions
Topic: WinClip - AHKv2 Compatibility
Replies: 18
Views: 2494

Re: WinClip - AHKv2 Compatibility

[EDIT:] Thx for the update, jeeswg! [EDIT OFF] NOTE: I noticed that the original coder is using StrGet and StrPut with "UTF-16" in a few more locations as well, besides GetText() and iGetText(). If I am not too tired I will look at it and might repost the original code with all of my corrections (in...
by autocart
20 Jun 2019, 13:28
Forum: Ask For Help
Topic: Basic question about the string terminator in ahk Topic is solved
Replies: 22
Views: 1450

Basic question about the string terminator in ahk Topic is solved

Hi all, I am wondering how StrGet(addressA) figures out the string length when I don't particularly specify it as parameter for the function. Does ahk use a string terminator? If so, is it the null-terminator mentioned in the help? (The help does not seem very clear to me, or I did not find the righ...
by autocart
20 Jun 2019, 10:31
Forum: Scripts and Functions
Topic: WinClip - AHKv2 Compatibility
Replies: 18
Views: 2494

Re: WinClip - AHKv2 Compatibility

Let's say, if out_size was 1500, then the loop would be executed 1 time and the remaining 500 (Bytes, I assume?) are not read at all. Never mind, I found the answer to this question as well as your original question: The answer to your original question, Skrommel, which was: Is it just my computer,...

Go to advanced search