Sign in to follow this  
Followers 0
MachinistProgrammer

How Dose AutoitObject dynamically create new com classes

10 posts in this topic

how dose autoitObject create new com classes dynamically? i thought that com objects were static


All my projects live on github

Share this post


Link to post
Share on other sites



AutoItObject creates COM objects of IDispatch interface. New entities are added or removed by updating internal list which is searched through when object is invoked upon AutoIt call.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Did I ever said I found _AutoItObject_RegisterObject() the best IPC method ever exists?

If not, hey I found _AutoItObject_RegisterObject() the best IPC method ever exists.

And trancexx, I guess it was you who addet this function to AIO, thanks for that.

Share this post


Link to post
Share on other sites

Did I ever said I found _AutoItObject_RegisterObject() the best IPC method ever exists?

If not, hey I found _AutoItObject_RegisterObject() the best IPC method ever exists.

And trancexx, I guess it was you who addet this function to AIO, thanks for that.

How are you using it for IPC?

Share this post


Link to post
Share on other sites

The parent process registers one or more objects with proper methods, the child processes call that methods to send data as parameters and receive data as method's return value (Child processes can also access/modify property of that object).

The child processes can also register their own objects, pass the GUID of registered object to parent process by calling a method of parent process, parent process can then interact with its child in a two way communication.

Think about it, there are a lots of other things which can be done this way.

Share this post


Link to post
Share on other sites

That's actually pretty creative. I didn't realize that the AutoIt objects would exist outside of the process like that.

Share this post


Link to post
Share on other sites

Well, actually I didn't know that as the FAQ of AIO says created objects are only visible to AutoIt's eye (it also says ptr variables can't be stored in properties or be passed to methods as parameters, both are wrong, they are just possible) until about 1 week ago which I read the whole AutoItObject thread just for nothing!

I saw a post by trancexx explaining this new feature and the most interesting part was that no one showed any interest.

Share this post


Link to post
Share on other sites

I don't touch the example scripts forum which is why I haven't seen it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0