Still not working, it does not seem like the macro is getting called. I did load the file using the macro load menu item. I never see either of the messages in the status line. I also search in the online help for _cbsave_do_sync and it is not found.
#include "slick.sh"
_command test() name_info(','VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_MDI_EDITORCTL)
{
_macro('R',1);
end_line();
bottom_of_window();_end_line();
bottom_of_buffer();
}
void _cbsave_do_sync()
{
message("saving file")
_str drive = strip_filename(p_buf_name, 'PN');
message(drive); // goes to status line for debug
if ( pos(drive, 'D:') != 0 ) {
shell('sync64.exe D','QA');
}
}