Esempio n. 1
0
        private void OpenChromeHandle()
        {
            //Automatically get the shockwave task from Chrome, this way:
            try
            {
                using (var handler = new ProcessHandler("chrome&flash"))
                {
                    SetTitle(handler.ToString());

                    _scanner.SetProcess(handler);
                    _scanner.SetSettings(_settings);

                    _scanner.SearchFor("YAHAHA YOU DIDNT!");
                }
            }
            catch (ProcessNotFoundException e)
            {
                // oh yeah, if you guys care about handle this, well, this is it...
                Console.WriteLine(e.Message);
                return;
            }
        }