c# - .NET StandardInput Sending Modifiers -


We have some legacy software that depends on sending keystrokes in the dos window and then scraping the screen. I am trying to recreate the software directly by redirecting the input and output stream of the process to my application. From this part I have worked fine:

  _Process = new process (); {_Process.StartInfo.FileName = Application; _Process.StartInfo.RedirectStandardOutput = True; _Process.StartInfo.RedirectStandardInput = True; _Process.StartInfo.RedirectStandardError = true; _Process.StartInfo.UseShellExecute = false; _Process.StartInfo.CreateNoWindow = true; _Process.OutputDataReceived + = New DataSavedAventHandler (_Process_OutputDataReceived); _Process.ErrorDataReceived + = New DetorIsevieveHandler (_Process_ErrorDataReceived); }  

My problem is that I need to send some command modifiers such as Ctrl, ALT and Space, as well as F12-12, for this process, but it is certain how I I can send the original text and I get the response right. I need to emulate these modifiers.

Look at this key code and see that you can send it to two main codes and to make them work .


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -