how is used SendInput function in J#?

how is used SendInput function in J#?

Post by Lars-Inge » Sat, 07 Aug 2004 02:39:50


The System.Windows.Forms.SendKeys.Send("") is working for me. Please
remember no space in the text.

Make a WinForms J# App, add a button and double click the button:

private void button1_Click (Object sender, System.EventArgs e)
{
System.Diagnostics.Process pros =
System.Diagnostics.Process.Start("notepad");
pros.WaitForInputIdle();
System.Windows.Forms.SendKeys.Send("a small text sample. Hello All!");
System.Windows.Forms.SendKeys.Send("{HOME}");
System.Windows.Forms.SendKeys.Send("^fHello%f");
// System.Windows.Forms.SendKeys.Send("%{f4}");
}


Regards,
Lars-Inge Tnessen
www.larsinge.com