Example #1
0
        static void Main(string[] args)
        {
            //Process[] process = Process.GetProcessesByName("chrome");
            //var pp = process.FirstOrDefault();
            //foreach (Process p in process)
            //{
            //    Console.WriteLine(p.ProcessName.ToString() + "   "+ p.MainWindowHandle.ToInt32().ToString()+"   "+p.Id.ToString());
            //}
            //const int WM_KEYDOWN = 0x0100;
            //const int WM_KEYUP = 0x0101;
            //IntPtr ppp = (IntPtr)404;
            //SendMessage(ppp, WM_KEYDOWN, 87, 0);
            //SendMessage(ppp, WM_KEYUP, 87, 0);

            OrderService myService = new OrderService();

            myService.StartOrderService();
        }
Example #2
0
        static void Main(string[] args)
        {
            OrderService myService = new OrderService();

            myService.StartOrderService();
        }