Opened 16 years ago

Closed 16 years ago

Last modified 21 months ago

#279 closed Feature Request (Rejected)

AddressOfVar($VariableName), SizeOfVar($VariableName)

Reported by: Zedna Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


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 Changed 16 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

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.

comment:2 Changed 16 years ago by Valik

  • Resolution No Bug deleted
  • Status changed from closed to reopened

comment:3 Changed 16 years ago by Valik

  • Resolution set to Rejected
  • Status changed from reopened to closed

Oops, habit of hitting "No Bug". Meant to Reject.

comment:4 Changed 16 years ago by TicketCleanup

  • Version deleted

Automatic ticket cleanup.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.