public static int GetProcessIDForgedWindow(params object[] ps) { int id = -1; Meths.GetWindowThreadProcessId(Meths.GetForegroundWindow(), ref id); return(id); }
public static object SendKeysWait(params object[] ps) { try { Meths.SetForegroundWindow(Meths.GetForegroundWindow()); SendKeys.SendWait(ps[0].ToString()); } catch (Exception e) { MessageBox.Show(e.ToString()); return(ps); } return(ps); }