Page 1 of 1

Get address of a string without define as variable

Posted: 24 Oct 2016, 03:22
by jNizM

Code: Select all

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

MsgBox % &p := ("string")     ; -> address

Re: Get address of a string without define as variable

Posted: 24 Oct 2016, 03:31
by just me
Because AHK doesn't have a real compiler, literal strings propably don't have a permanent address.

Re: Get address of a string without define as variable

Posted: 24 Oct 2016, 09:26
by guest3456
AHK_H has this feature, so use that. your code works fine there

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

Re: Get address of a string without define as variable

Posted: 25 Oct 2016, 04:29
by jNizM
guest3456 wrote:AHK_H has this feature, so use that. your code works fine there
AutoHotkey > Wish List

Re: Get address of a string without define as variable

Posted: 25 Oct 2016, 05:43
by guest3456
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

Re: Get address of a string without define as variable

Posted: 25 Oct 2016, 06:05
by jNizM
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.

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

Posted: 10 May 2019, 16:19
by lexikos
This is also permitted in v2.0-a093 (603e29c2) and later.

Re: Get address of a string without define as variable

Posted: 13 May 2019, 01:05
by jNizM
gracias lexikos