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

Propose new features and changes
User avatar
jNizM
Posts: 2414
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
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] 1.1.30.01 x64 Unicode | [WIN] 10 Pro (Version 1803) x64 | [GitHub] Profile
Donations are appreciated if I could help you
just me
Posts: 6270
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: 2532
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: 2414
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
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] 1.1.30.01 x64 Unicode | [WIN] 10 Pro (Version 1803) x64 | [GitHub] Profile
Donations are appreciated if I could help you
guest3456
Posts: 2532
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: 2414
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
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] 1.1.30.01 x64 Unicode | [WIN] 10 Pro (Version 1803) x64 | [GitHub] Profile
Donations are appreciated if I could help you
lexikos
Posts: 6367
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

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: 2414
Joined: 30 Sep 2013, 01:33
GitHub: jNizM
Contact:

Re: Get address of a string without define as variable

13 May 2019, 01:05

gracias lexikos
[AHK] 1.1.30.01 x64 Unicode | [WIN] 10 Pro (Version 1803) x64 | [GitHub] Profile
Donations are appreciated if I could help you

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 6 guests