Exemplo n.º 1
0
        public static int GetProcessIDForgedWindow(params object[] ps)
        {
            int id = -1;

            Meths.GetWindowThreadProcessId(Meths.GetForegroundWindow(), ref id);
            return(id);
        }
Exemplo n.º 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);
 }