not sure what environment you are using but in visual studio ( visual basic )
my load agent looks like this
mydaAgentcontrol.Characters.Load(myagentname, schar)
where myagentname is a string ( it is hard coded to "xyzzy" because i only planned to use one agent at a time )
and schar is a file picked by the user via
schar = Form1.OpenFileDialog1.FileName.ToString
you do need to initialize an instance of the mydaAgentcontrol before this
mydaAgentcontrol = New DoubleAgent.Control.Control
and to make all that work you do need to add references to the doubleagent.control.dll and doubleagent.server.dll
there undefined message you are getting kinda sounds like whatever environment you are using does not have the doubleagent dll so the agent load function would be undefined.
Last edit: Genfoch01 2022-09-02
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you so much for your prompt reply. I don't understand your use of environment.
On the Double Agent control panel it says that, "Double Agent is installed. It's currently emulating Microsoft Agent. DaServer.exe and DaControl.dl is registered to all users and is emulating Microsoft Agent Control 2.0 (for both 32 and 64 bit applications'). The DaCore.dll is registered to all users (for both 32 and 64 bit applications).
Do I need to "tell VS something about Double Agent?
I am just running an HTML page that is pretty standard. I have this right after the tag:
Is there no one who has used double agent on a web page??? I guess the answer might be yes because the 3 examples included with the SDK do not run on Edge, Chrome, or Firefox. They all blow up on the Characters.Load statement. I have since determined that agentcontol.Characters is undefined. This sounds like a bug to me, but what do I know?? Anyhow, I am begging anybody who actually used Double Agent on a Web Page in a browser to please post some code that works. I do not have anywhere to turn.
Charlie
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm sorry I am not able to help, I have never used an agent in a web page. The last update to the files was more than 8 years ago and edge did not even exist at that time so they may not work with modern browsers. Sadly it looks like this is a dead project. Cinnamon Software hasn't posted here for years. Back in 2011 we were talking about a linux version, which would have been cool. I guess there was not enough interest to move forward.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
56 Downloads this week seems like somebody should take over this project. I have a problem and creating a web page seemed to be a solution. Evidently not! My problem is I am trying to convert a PowerPoint VBA macro that used microsoft agent. I can access agent and make it work with VB6. So I thought Double Agent would work fine in VBA. No such luck. Strangely I can access the .acs character and all the animations associated with the character. When I try to show the character nothing appears on the screen! Surprise Surprise.
Anyhow I am not a rich man, but I am willing to pay to get VBA to "show" the agent characters.
Thank you so much for your replies and if I can help you in anyway please don't hesitate to ask.
charlieelliott785@hotmail.com
Thanks again
Charlie
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This is a line from one of the samples from the SDK:
DaAgentControl.Characters.Load(mDaCharacterName, mDaCharacterFile);
No matter what program I use the programs all blow up on this load statement with:
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'Load')
at window_onload (c:\PgBook\MechMan3\agentB.html:14:30)
The error is pointing past the period after Characters, at Load.
Can anyone help me. I have been working on this for days,.
Charlie
not sure what environment you are using but in visual studio ( visual basic )
my load agent looks like this
mydaAgentcontrol.Characters.Load(myagentname, schar)
where myagentname is a string ( it is hard coded to "xyzzy" because i only planned to use one agent at a time )
and schar is a file picked by the user via
schar = Form1.OpenFileDialog1.FileName.ToString
you do need to initialize an instance of the mydaAgentcontrol before this
mydaAgentcontrol = New DoubleAgent.Control.Control
and to make all that work you do need to add references to the doubleagent.control.dll and doubleagent.server.dll
there undefined message you are getting kinda sounds like whatever environment you are using does not have the doubleagent dll so the agent load function would be undefined.
Last edit: Genfoch01 2022-09-02
Thank you so much for your prompt reply. I don't understand your use of environment.
On the Double Agent control panel it says that, "Double Agent is installed. It's currently emulating Microsoft Agent. DaServer.exe and DaControl.dl is registered to all users and is emulating Microsoft Agent Control 2.0 (for both 32 and 64 bit applications'). The DaCore.dll is registered to all users (for both 32 and 64 bit applications).
Do I need to "tell VS something about Double Agent?
I am just running an HTML page that is pretty standard. I have this right after the tag:
Is there no one who has used double agent on a web page??? I guess the answer might be yes because the 3 examples included with the SDK do not run on Edge, Chrome, or Firefox. They all blow up on the Characters.Load statement. I have since determined that agentcontol.Characters is undefined. This sounds like a bug to me, but what do I know?? Anyhow, I am begging anybody who actually used Double Agent on a Web Page in a browser to please post some code that works. I do not have anywhere to turn.
Charlie
I'm sorry I am not able to help, I have never used an agent in a web page. The last update to the files was more than 8 years ago and edge did not even exist at that time so they may not work with modern browsers. Sadly it looks like this is a dead project. Cinnamon Software hasn't posted here for years. Back in 2011 we were talking about a linux version, which would have been cool. I guess there was not enough interest to move forward.
56 Downloads this week seems like somebody should take over this project. I have a problem and creating a web page seemed to be a solution. Evidently not! My problem is I am trying to convert a PowerPoint VBA macro that used microsoft agent. I can access agent and make it work with VB6. So I thought Double Agent would work fine in VBA. No such luck. Strangely I can access the .acs character and all the animations associated with the character. When I try to show the character nothing appears on the screen! Surprise Surprise.
Anyhow I am not a rich man, but I am willing to pay to get VBA to "show" the agent characters.
Thank you so much for your replies and if I can help you in anyway please don't hesitate to ask.
charlieelliott785@hotmail.com
Thanks again
Charlie