Modify ↓
Opened on May 13, 2008 at 11:05:22 PM
Closed on May 13, 2008 at 11:18:32 PM
Last modified on May 28, 2022 at 8:59:52 AM
#279 closed Feature Request (Rejected)
AddressOfVar($VariableName), SizeOfVar($VariableName)
| Reported by: | Zedna | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
These new functiona will return memory Address/Size Of given AutoIt's Variable
so we can use some pointers/typecast tricks.
For example create structure "over" that memory and then get data in another type
$MemPointer = AddressOfVar($a)
$MemSize = SizeOfVar($a)
$struct = DllStructCreate("byte[" & $MemSize & "]", $MemPointer)
$data = DllStructGetData($struct, 1)
I'm sure there will be another uses of this functionality
together with AutoIt's DllCall() and structures and memory API functions.
Attachments (0)
Change History (4)
comment:1 by , on May 13, 2008 at 11:17:58 PM
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:2 by , on May 13, 2008 at 11:18:08 PM
| Resolution: | No Bug |
|---|---|
| Status: | closed → reopened |
comment:3 by , on May 13, 2008 at 11:18:32 PM
| Resolution: | → Rejected |
|---|---|
| Status: | reopened → closed |
Oops, habit of hitting "No Bug". Meant to Reject.
Note:
See TracTickets
for help on using tickets.

AutoIt doesn't need typecast tricks. Besides, on the rare occasion that you do need to cast something, there are functions like Int() and the like to do that. Further, this will never work, AutoIt's types aren't simple. This isn't like overlaying a double onto an int64 to work with the raw bits. The Variant class in AutoIt is highly complex.