public CHDK_ExecuteScript ( string script, CHDK_ScriptLanguage language, int &script_id, CHDK_ScriptErrorType &status ) : void | ||
script | string | |
language | CHDK_ScriptLanguage | |
script_id | int | |
status | CHDK_ScriptErrorType | |
return | void |
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;
}