Search found 515 matches

by arcticir
Yesterday, 04:18
Forum: Ask For Help
Topic: Release binary variable
Replies: 3
Views: 61

Re: Release binary variable

thank you all. I understand.
by arcticir
16 Aug 2018, 13:45
Forum: Ask For Help
Topic: Release binary variable
Replies: 3
Views: 61

Release binary variable

I found that when a binary variable is routinely assigned, it does not release the memory it occupies and must be released manually. is this normal? b:=fileread(a_ahkpath,"RAW") b:="test" MsgBox strlen(b) "/" VarSetCapacity(b) ;4/1618432 b:=fileread(a_ahkpath,"RAW&...
by arcticir
16 Aug 2018, 13:14
Forum: Ask For Help
Topic: How to determine if there are Label inside the function?
Replies: 4
Views: 84

Re: How to determine if there are Label inside the function?

This seems to be another kind of complexity, But it is worth trying.
It seems to only get the last and first?
How do I traverse the function tags?

Thank you. ;)
by arcticir
16 Aug 2018, 05:51
Forum: Ask For Help
Topic: How to determine if there are Label inside the function?
Replies: 4
Views: 84

How to determine if there are Label inside the function?

Because "IsLabel" can't tell if the label is inside the function, I usually use the following method to determine whether it exists, but if the number of sub-tabs reaches hundreds, I somewhat mind the cumbersomeness of it. Is there a better solution? func("str") func(s){ static l...
by arcticir
15 Aug 2018, 03:31
Forum: AutoHotkey_H
Topic: #DllImport Support for "A_PtrSize" variable
Replies: 1
Views: 31

#DllImport Support for "A_PtrSize" variable

Can support the A_PtrSize variable to automatically read the corresponding version?

Code: [Select all]GeSHi © Codebox Plus

#DllImport curl_easy_init,%a_ahkdir%\curl\libcur-%A_PtrSize%.dll\curl_easy_init,cdecl
by arcticir
15 Aug 2018, 00:45
Forum: AutoHotkey_H
Topic: [BUG] must be a variable.
Replies: 1
Views: 42

[BUG] must be a variable.

size:=6456546 VarSetCapacity(data,size,0) loop size RtlMoveMemory(&data+(a_index-1),&size,1) Error: Parameter #1 of RtlMoveMemory must be a variable. Line# 001: size := 6456546 002: VarSetCapacity(data,size,0) 004: Loop size ---> 005: RtlMoveMemory(&data+(a_index-1),&size,1) 006: Ms...
by arcticir
12 Aug 2018, 09:38
Forum: AutoHotkey v2 Development
Topic: String to number
Replies: 11
Views: 137

Re: String to number

this topic, in addition to explaining why "Float()" cannot be accurately converted, is there any help for "accurate conversion type"?
by arcticir
12 Aug 2018, 09:02
Forum: AutoHotkey v2 Development
Topic: String to number
Replies: 11
Views: 137

Re: String to number

One problem is that its conversion is not accurate, it is very bad when converting JSON data:

Float("6.9") ;==>6.9000000000000004
by arcticir
12 Aug 2018, 08:52
Forum: AutoHotkey v2 Development
Topic: String to number
Replies: 11
Views: 137

Re: String to number

thank you very much. My "help document" is too old. :shock:
by arcticir
12 Aug 2018, 08:27
Forum: AutoHotkey v2 Development
Topic: String to number
Replies: 11
Views: 137

Re: String to number

Helgef wrote:There are two (suitable) functions available, integer and float.


Can you link the addresses of these two functions? I can't find.

Image
by arcticir
12 Aug 2018, 08:24
Forum: AutoHotkey v2 Development
Topic: String to number
Replies: 11
Views: 137

Re: String to number

Yes, but as some DLL parameters, need to convert.
by arcticir
12 Aug 2018, 07:55
Forum: AutoHotkey v2 Development
Topic: String to number
Replies: 11
Views: 137

String to number

I need to convert the values ​​in the string to numeric values. I found this very difficult. Do you have any quick methods?

I found that converting them requires a complicated process:
e.g. ["6.9","232","-8.3"]
by arcticir
08 Aug 2018, 06:43
Forum: Ask For Help
Topic: How to use QT5?
Replies: 2
Views: 87

Re: How to use QT5?

Its performance is even worse.
by arcticir
07 Aug 2018, 05:03
Forum: Ask For Help
Topic: How to use QT5?
Replies: 2
Views: 87

How to use QT5?

I tried to write a picture browser with AHK. I found that GDI+ performance is too bad, and loading large images (20M+) is very slow. So I want to find a better solution. I think QT5 is a good choice. Unfortunately, I not found any examples of AHK using QT. And I don't have a programming foundation t...
by arcticir
07 Aug 2018, 00:57
Forum: Ask For Help
Topic: SciLexer.dll Get line quantity
Replies: 2
Views: 65

Re: SciLexer.dll Get line quantity

Thank you for your help, which solved my problem.
by arcticir
06 Aug 2018, 08:03
Forum: Ask For Help
Topic: SciLexer.dll Get line quantity
Replies: 2
Views: 65

SciLexer.dll Get line quantity

I know that I get the number of rows using "sci_GetLineCount", but if I set "Auto Wrap", the actual number of rows will be more, but I didn't find a command to get this value. Who knows which function to get it? I want to automatically adjust the GUI height based on the height of...
by arcticir
08 Jul 2018, 08:48
Forum: Ask For Help
Topic: How to rotate the screen?
Replies: 2
Views: 120

Re: How to rotate the screen?

Thank you for your help, it works very well.

Go to advanced search