Does anyone know a way of acheiving this?
So far i have the following code:
[DllImport("user32.dll", SetLastError = true)]
static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
public const int VK_MENU = 0x12;
public const int VK_CONTROL = 0x11;
public const int VK_END = 0x23;
public const int KEYEVENTF_EXTENDEDKEY = 0x0001;
public const int KEYEVENTF_KEYUP = 0x0002;
public static void ctrlAltEnd()
{
keybd_event(VK_MENU,0xb8,0 , 0); //Alt Press
keybd_event(VK_CONTROL,0x9d,0 , 0); // Ctrl Press
keybd_event(VK_END, 0x4f,0,0); //press end
keybd_event(VK_END, 0x4f,KEYEVENTF_KEYUP,0); //release end
keybd_event(VK_CONTROL,0x9d,KEYEVENTF_KEYUP,0); // Ctrl Release
keybd_event(VK_MENU,0xb8,KEYEVENTF_KEYUP,0); // Alt Release
}