project-build <arg==visible menu entry> should help.
I've written this small wrapper time ago due to the '_postbuild_' issue.
Could be a basis for your own wrappers b/c AFAIK you can't provide args to the commands when triggered by a key(combination).
But you could evaluate the keys and use it as args - see e.g. 'bookmark.e - alt_gtbookmark()'.
_command void build_any_target,bat ( _str buildtoolname='' ) name_info (','VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL)
{
if ( buildtoolname != '' )
{
activate_build ();
reset_next_error();
// clear_all_error_markers();
project_build ( buildtoolname );
call_list("_postbuild_", _project_name);
}
else
{
message ( "buildtoolname missing." );
}
}
Good luck,
HS2