Using
SendKey
class to send keystroke to any windows application.
It works fine, but it doesn't work om Mac OS run in VMware.
Please any one suggest me.
[DllImport("user32.dll", SetLastError = true)]
static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo);
public static void test()
{
byte VK_TAB = 0x09;
byte VK_TAB = 0x30;
const int KEYEVENTF_KEYUP = 0x2;
const int KEYEVENTF_KEYDOWN = 0x0;
keybd_event(VK_TAB, 0, KEYEVENTF_KEYDOWN, 0);
keybd_event(VK_TAB, 0, KEYEVENTF_KEYUP, 0);
}
I have to create test method which send tab keystroke to another application.
It is working perfect in Windows, but not working in Mac OS which run in VMware in windows.
Please help me.