welcome aboard sot
your idea has been impemented in game since long: you need to enable
TDW's UI mod, together with one or more of the following automated script packs:
Trevally Tutorials
Trevally Harbour & Kiel Canal Pilot Scripts v3.1
Trevally Auto Scripts v0.6
Husksubskys Automated Scripts v0.1 (Trevally's scripts enhanced)
Abd_von_Mumit's Patrol Routine Scripts
Krauter's Automated Scripts
Beware that some of the older automation scripts might be not compatible with the latest New UI's version. Should you enable them, they would also 'break' the up-to-date scripts, so make sure to check the [REL] threads above for updates (they might not be linked in the first posts), and enable script packs one by one.
One last note: the automated scripts won't trigger themselves automatically; you need to activate them manually according to circumstances, but once they have started, they will make their job without need of further inputs by you