public void Emulate(IntPtr hWnd, int key) { string methodName = "emulate" + L2gConfig.getInstance().ClickType; MethodInfo mi = this.GetType().GetMethod(methodName); object[] parametersArray = new object[] { hWnd, key }; mi.Invoke(this, parametersArray); //emulateShellExecute(hWnd, key); }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { L2gConfig.getInstance().ClickType = L2gConfig.CLICKTYPE_POST_MESSAGE; toolStripMenuItem2.Checked = true; toolStripMenuItem3.Checked = false; }