Exemplo n.º 1
0
        public void DoActivities()
        {
            Init();
            try
            {
#if !DEBUG
                if (string.IsNullOrEmpty(Password))
                {
                    GetCredentials();
                }

                Password = new System.Net.NetworkCredential(string.Empty,
                                                            (SecureString)CurrentConfig["Password"]).Password;
#else
                CurrentConfig["User"] = "******";
                Password = "******";
#endif
                if (Methods.OpenWS(EmulatorURL, SessionId, CurrentConfig["User"].ToString(), Password, out int Id) == true)
                {
                    Base();
                }
                else
                {
                }

                Console.WriteLine("Fin");
                FlashWindow.FlashWindowEx(Process.GetCurrentProcess().MainWindowHandle);
                Console.ReadKey();
            }
            catch (Exception ex)
            {
                Methods.LogProceso("ERROR_2: " + ex.Message);
            }
        }
Exemplo n.º 2
0
 // Token: 0x060000C6 RID: 198 RVA: 0x000053A0 File Offset: 0x000035A0
 public static bool Flash(IntPtr formHandle, uint count)
 {
     if (FlashWindow.Win2000OrLater)
     {
         FlashWindow.FLASHWINFO flashwinfo = FlashWindow.Create_FLASHWINFO(formHandle, 3u, count, 0u);
         return(FlashWindow.FlashWindowEx(ref flashwinfo));
     }
     return(false);
 }
Exemplo n.º 3
0
 // Token: 0x060000C9 RID: 201 RVA: 0x00005424 File Offset: 0x00003624
 public static bool Stop(IntPtr formHandle)
 {
     if (FlashWindow.Win2000OrLater)
     {
         FlashWindow.FLASHWINFO flashwinfo = FlashWindow.Create_FLASHWINFO(formHandle, 0u, uint.MaxValue, 0u);
         return(FlashWindow.FlashWindowEx(ref flashwinfo));
     }
     return(false);
 }