I'm not quite sure that this is possible.
I have an outdated graphical application written in C #. Using AttachConsole (-1) (from kernel32.dll), I can add a console window if it is called from the command line. I was even able to write a module for basic use cases and make it look like a console application. I do not show the window, and if I do, it does not update and does not work properly (because I did not use Application.Run)
However, the other person on my team wants to do something similar, where the input arguments will expose a series of GUI actions (e.g. buttonExample.PerformClick (), update text fields, etc.) to simulate the user. Is it possible to do this with C # completely or will he have to use something like AutoIt?
We are using VS2008 / .NET Framework v3.5.
source share