G
Guest
Hello Everyone,
I have this code for sendKeys. This simply sends a text to the notepad.
This method runs fine, but I don't see the notepad and the text entered in
that notepad. Is there any way I can see the notepad. When I go to the
taskbar, I can see that notepad.exe is running there, but I don't see the
notepad itself. I am calling this method from the web page.
public void sendKeysTest()
{
System.Diagnostics.Process.Start("c:\WINNT\notepad.exe")
Process myProcess= new Process();
myProcess.StartInfo.FileName="notepad";
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
myProcess.EnableRaisingEvents = true;
if (myProcess.Responding)
{
System.Windows.Forms.SendKeys.SendWait("This text was entered using the
System.Windows.Forms.SendKeys method.");
}
else
myProcess.Kill();
}
Thanks,
Any help will be appreciated.
I have this code for sendKeys. This simply sends a text to the notepad.
This method runs fine, but I don't see the notepad and the text entered in
that notepad. Is there any way I can see the notepad. When I go to the
taskbar, I can see that notepad.exe is running there, but I don't see the
notepad itself. I am calling this method from the web page.
public void sendKeysTest()
{
System.Diagnostics.Process.Start("c:\WINNT\notepad.exe")
Process myProcess= new Process();
myProcess.StartInfo.FileName="notepad";
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
myProcess.EnableRaisingEvents = true;
if (myProcess.Responding)
{
System.Windows.Forms.SendKeys.SendWait("This text was entered using the
System.Windows.Forms.SendKeys method.");
}
else
myProcess.Kill();
}
Thanks,
Any help will be appreciated.