public void CHDK_ExecuteScript(string script, CHDK_ScriptLanguage language, out int script_id, out CHDK_ScriptErrorType status)
        {
            SendCHDKCommand(
                CHDK_PTP_Command.PTP_CHDK_ExecuteScript,
                (new System.Text.ASCIIEncoding()).GetBytes(script + "\x00"),
                1,
                (int)language
                );
            Ensure_PTP_RC_OK();

            script_id = ptp.Param1;
            status    = (CHDK_ScriptErrorType)ptp.Param2;
        }
        public void CHDK_ExecuteScript(string script, CHDK_ScriptLanguage language, out int script_id, out CHDK_ScriptErrorType status)
        {
            SendCHDKCommand(
                CHDK_PTP_Command.PTP_CHDK_ExecuteScript,
                (new System.Text.ASCIIEncoding()).GetBytes(script + "\x00"),
                1,
                (int)language
                );
            Ensure_PTP_RC_OK();

            script_id = ptp.Param1;
            status = (CHDK_ScriptErrorType)ptp.Param2;
        }
        public void CHDK_ExecuteScript(
            string script,
            CHDK_ScriptLanguage language,
            out int script_id,
            out CHDK_ScriptErrorType status)
        {
            this.SendCHDKCommand(
                CHDK_PTP_Command.PTP_CHDK_ExecuteScript,
                new ASCIIEncoding().GetBytes(script + "\x00"),
                1,
                (int)language);
            this.Ensure_PTP_RC_OK();

            script_id = this.ptp.Param1;
            status = (CHDK_ScriptErrorType)this.ptp.Param2;
        }