Get address of a string without define as variable Topic is solved

Propose new features and changes
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Get address of a string without define as variable

24 Oct 2016, 03:22

Code: Select all

MsgBox % &("string")          ; -> empty

MsgBox % &p := ("string")     ; -> address
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
just me
Posts: 9442
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Get address of a string without define as variable

24 Oct 2016, 03:31

Because AHK doesn't have a real compiler, literal strings propably don't have a permanent address.
guest3456
Posts: 3462
Joined: 09 Oct 2013, 10:31

Re: Get address of a string without define as variable

24 Oct 2016, 09:26

AHK_H has this feature, so use that. your code works fine there

http://hotkeyit.github.io/v2/docs/AHKH_Features.htm

User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Get address of a string without define as variable

25 Oct 2016, 04:29

guest3456 wrote:AHK_H has this feature, so use that. your code works fine there
AutoHotkey > Wish List
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
guest3456
Posts: 3462
Joined: 09 Oct 2013, 10:31

Re: Get address of a string without define as variable

25 Oct 2016, 05:43

jNizM wrote:
guest3456 wrote:AHK_H has this feature, so use that. your code works fine there
AutoHotkey > Wish List
ok then waste your time waiting instead of using an existing solution

AHK_H is practically a superset so almost all scripts should just work as is

User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Get address of a string without define as variable

25 Oct 2016, 06:05

guest3456 wrote:ok then waste your time waiting instead of using an existing solution
Since there is a temporary solution with define as variable I dont need to wait or waste my time.
I just ask for an implementation. Thats why I post this in Wish List.
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: Get address of a string without define as variable  Topic is solved

10 May 2019, 16:19

This is also permitted in v2.0-a093 (603e29c2) and later.
User avatar
jNizM
Posts: 3183
Joined: 30 Sep 2013, 01:33
Contact:

Re: Get address of a string without define as variable

13 May 2019, 01:05

gracias lexikos
[AHK] v2.0.5 | [WIN] 11 Pro (Version 22H2) | [GitHub] Profile

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 24 guests