Modify

Opened 11 years ago

Last modified 10 years ago

#2608 new Feature Request

COM Objects and Classes

Reported by: James (autoit.de) Owned by:
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:

Description

Would it be possible to allow AutoIt/ObjCreate to work with object classes (and similar stuff)?
The following script will hopefully explain what I mean:

Powershell:

$o = new-object -comobject "System.Object"
$o.GetType().GetMembers() | foreach-object {write-host $_.Name}
ToString
Equals
Equals
ReferenceEquals
GetHashCode
GetType
.ctor

AutoIt:

$o = ObjCreate("System.Object")
For $_ In $o.GetType().GetMembers()
    ConsoleWrite($_.Name & @CRLF)
Next
$o = 0
"C:\AutoIt3\Scripts\test.au3" (2) : ==> Variable must be of type "Object".:
For $_ In $o.GetType().GetMembers()
For $_ In $o.GetType().GetMembers()^ ERROR

Attachments (0)

Change History (1)

comment:1 Changed 10 years ago by anonymous

Could someone please comment on this?

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

Action
as new The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.