Been working on a script and have this snippet. Feel free to improve etc. But it works for me

Simba Code:
(*
Dockbutton
~~~~~~~~~~
.. code-block:: pascal
function Dockbutton(Button: Integer): Boolean;
If the button is available to click, the function will click the button and return
true or false.Passing 1-6 will use the ability in the coordinating area.
.. note::
by xtrapsp
Last modified: March. 28th, 2013 by Xtrapsp
Example:
.. code-block:: pascal
if Dockbutton(3) then
WriteLn('Clicked the Dockbutton{3} which is shipyard');
*)
function Dockbutton(Button: Integer): Boolean;
var
X, Y: Integer;
begin
Result := False;
case (Button) of
1:
begin
Writeln('Clicking Voyages Button');
HumanMMouse(207,73-50,4,4);
Result := True;
exit;
end;
2:
begin
Writeln('Clicking Crew Roster Button');
HumanMMouse(207,73-50,4,4);
Result := True;
exit;
end;
3:
begin
Writeln('Clicking Shipyard Button');
HumanMMouse(207,73-50,4,4);
Result := True;
exit;
end;
4:
begin
Writeln('Clicking Upgrades Button');
HumanMMouse(207,73-50,4,4);
Result := True;
exit;
end;
5:
begin
Writeln('Clicking Port Management Button');
HumanMMouse(207,73-50,4,4);
Result := True;
exit;
end;
6:
begin
Writeln('Clicking Upgrades Button');
HumanMMouse(207,73-50,4,4);
Result := True;
exit;
end;
end;
end;