Bradley Posted December 31, 2007 Posted December 31, 2007 I just started looking at GImageX and so far I love it. One problem I am running into, however, is the inability to connect to the COM object after instantiation. For instance, this works: Set objWIM = WScript.CreateObject("GImageX.GImageXCtrl", "objWIM_") as in the samples provided. This, however, does not: Set objWIM = WScript.CreateObject("GImageX.GImageXCtrl") WScript.ConnectObject objWIM, "objWIM_" Ultimately, I would like to use GImageX ActiveX with an HTA which requires connecting to the object after instantiation. This works with other ActiveX classes I have tried. I may not be describing this correctly but hopefully the code samples help. TIA.
PsaltyDS Posted December 31, 2007 Posted December 31, 2007 I just started looking at GImageX and so far I love it. One problem I am running into, however, is the inability to connect to the COM object after instantiation. For instance, this works:Set objWIM = WScript.CreateObject("GImageX.GImageXCtrl", "objWIM_")as in the samples provided.This, however, does not:Set objWIM = WScript.CreateObject("GImageX.GImageXCtrl")WScript.ConnectObject objWIM, "objWIM_"Ultimately, I would like to use GImageX ActiveX with an HTA which requires connecting to the object after instantiation. This works with other ActiveX classes I have tried. I may not be describing this correctly but hopefully the code samples help. TIA.Both your working and broken code is WScript, so how is this an AutoIt question...? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Bradley Posted December 31, 2007 Author Posted December 31, 2007 Both your working and broken code is WScript, so how is this an AutoIt question...? I guess it is not, but isn't GImageX part of AutoIt? Is the a support forum for GImageX? If so, can you point me in the right direction since I cannot seem to find it?
PsaltyDS Posted December 31, 2007 Posted December 31, 2007 I guess it is not, but isn't GImageX part of AutoIt? Is the a support forum for GImageX? If so, can you point me in the right direction since I cannot seem to find it?Ah, I hadn't seen the topic where Jon posted the announcement. I don't know if Jon meant to be supporting that here or not, so I'll just shut up now... Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Administrators Jon Posted December 31, 2007 Administrators Posted December 31, 2007 I think I have to implement some more interfaces in the COM object to support this - I'll look into it. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Administrators Jon Posted December 31, 2007 Administrators Posted December 31, 2007 Think I've got it working for next version. As for questions, better off just emailing me - it's not really part of AutoIt. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now