Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Re: How to obtain the memory address of a variable in AutoHotkey v2?

$
0
0
Does this mean that "&var" is only suitable for string variables?
var is not a "string variable", but a variable that can contain anything, even if it currently contains a string. &var in v1 can return the address of a string even if the variable contained a number, and sometimes that is what you want; or it can return the address of an object, which is entirely a different thing.


The current method of getting signed shorts from an int is to copy them into a buffer and use NumGet.

The "current" method is not to "copy them into a buffer and use NumGet", but to use bitwise-AND/OR and bit-shifting.

Statistics: Posted by lexikos — 30 minutes ago



Viewing all articles
Browse latest Browse all 579

Trending Articles