|
using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
namespace Deployer
{
class SendKeysExtended
{
// Get a handle to an application window.
[DllImport("USER32.DLL")]
public static extern IntPtr FindWindow(string lpClassName,
string lpWindowName);
// Activate an application window.
[DllImport("USER32.DLL")]
public static extern bool SetForegroundWindow(IntPtr hWnd);
internal static void SendKeys(IntPtr intPtr, params string[] keysToSend)
{
//SetForegroundWindow(intPtr);
foreach (string s in keysToSend)
System.Windows.Forms.SendKeys.SendWait(s);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
If you liked this article, consider reading
other articles by me. For republishing article on other websites, please contact me by leaving a comment.