public Boolean execute(Dictionary <string, String> pv)
            {
                IntPtr wnd_ptr = Win32Locator.locateWindow(wnd_str, Win32Locator.dotNet_Wnd_Postfix);

                if (wnd_ptr == IntPtr.Zero)
                {
                    return(false);
                }
                String value = con;

                if (value == null && mField != null)
                {
                    value = ScriptExecuter.GetFieldValue(mField);
                }
                if (value != null)
                {
                    Trace.WriteLineIf(ScriptExecuter.debug_level > TraceLevel.Info, "Send Message " + value);
                    if (Win32Locator.SendWndMessage(wnd_ptr, value))
                    {
                        return(true);
                    }
                    Last_Error = "发送消息失败";
                    Trace.WriteLine(Last_Error);
                    return(false);
                }
                else
                {
                    Last_Error = ("不能找到指定的字段 " + mField);
                    Trace.WriteLine(Last_Error);
                }
                return(false);
            }
            public Boolean execute(Dictionary <string, String> pv)
            {
                IntPtr wnd = Win32Locator.locateWindow(mTitle, null);

                if (Win32Locator.SetForeGWindow(wnd))
                {
                    return(true);
                }
                Last_Error = "激活窗口失败,请检查税控窗口是否打开";
                Trace.WriteLine(Last_Error);
                return(false);
            }
            public Boolean execute(Dictionary <string, String> pv)
            {
                if (!data_ready)
                {
                    return(false);
                }
                IntPtr wnd  = Win32Locator.GetActiveWnd();
                Rect   rect = Win32Locator.GetWinRect(wnd);

                if (Win32Locator.MoveWindow(wnd, left, top, right - left, bottom - top, true))
                {
                    return(true);
                }
                else
                {
                    Last_Error = String.Format("调整窗口失败 {0:d} {1:d} {2:d} {3:d}", rect.Top, rect.Left, rect.Bottom, rect.Right);
                    Trace.WriteLine(Last_Error);
                }
                return(false);
            }