Click here to Skip to main content
15,067,832 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need to read and write to an ActiveX control located in a broswer that accesses a mainframe. It is a simple command line interface (strictly text), and I believe it might be based on a citrix interface. I would like to be able to send a command and read via code the result. Can anyone give me some guidance on how to start this?

Paul
Posted

1 solution

Does the ActiveX control already exist, if so is a description of the API available for it? If not you can import it into a win or console app to at least get intellisence.

Otherwise the object tag is just any other part of the DOM. You can get access to it via it's id like any other element. If the control is successfully loaded (both installed and having no browser security issues) then you can use it's methods and properties as you would in any win or console app. I have encountered issues where javascript would fire after loading the page but the control had not yet initiated. This is easily mitigated by setting a call back via timer.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900