I would like to intercept and enter my own code when calling third-party code in C #. I use an external library (AutoIt) to automate the graphical interface. The AutoIt dialog box is provided without source code.
All actions performed in this structure are performed from one class ( AutoItClass ), which provides access to all methods. I would like to be able to enter custom code when calling methods in this class, is this possible? For instance:
- Record some information from the called method.
- Perform any other action from the method (wait X seconds).
This would be possible very simply, inheriting from this class and overriding all its methods (which is mandatory, since it is a COM object), but this is not the most preferred way. Any comments would be helpful!
lysergic-acid
source share