Exemple #1
0
        public static int GetProcessIDForgedWindow(params object[] ps)
        {
            int id = -1;

            Meths.GetWindowThreadProcessId(Meths.GetForegroundWindow(), ref id);
            return(id);
        }
Exemple #2
0
 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);
 }