Sign in to follow this  
Followers 0
theguy0000

adding COM functionality

7 posts in this topic

is it possible to give my autoit application COM functionality so thatother applications can use it?

like when a separate application calls MyApp.Application.msgbox then my app would display a msgbox? (of course that's just an example :whistle:)

Is that possible?


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites



I think the easiest way is to use ... $CMDLine

Run("The_Program_Name.exe /MsgBox")

If $CMDLine[0] > 0 Then
    If $CMDLine[1] = "/MsgBox" Then GetMsgBx()
EndIf

; More Code Here

Func GetMsgBx()
    MsgBox(64, "Test", "This is a test  ")
    Exit
EndFunc   ;==>GetMsgBx

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

I know lol I'm just curious about how I would implement COM


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

I know lol I'm just curious about how I would implement COM

Well, if you figure it out... please let me know how too!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

autoitx

isnt autoitx for using autoit in other languages? because that's not what I want, I'm just interested in implementing COM to an autoit application...

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

The answer is going to be a resounding no, I can guarantee you.

Because you asked the question, you probably don't understand what kind of technical feat it would be, and why it wouldn't be worth it.

Suffice it to say, AutoIt wasn't meant for that sort of programming.

You might consider C#. It's a nice compromise for those who wish to be able to program near the low level of C++ (with only the .NET CLR in the way), yet with near-AutoIt ease.

-S


(Yet Another) ExcelCOM UDF"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly...[indent]...specialization is for insects." - R. A. Heinlein[/indent]

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