Mining Bot Question and Hints

Welcome, and thank you very much for sharing these improvements!

Because the bot was programmed based on the description at First timer, mining bot question!
That information about mining barges was not available then.

Here is a version adapted to your observations:

No problem, that wait loop is implemented here:

We can do this using the KeyDown and KeyUp options. Here is the complete bot with the ship stop command:

This is the part building the action:

stopShipAction : TreeLeafAct
stopShipAction =
    { firstAction = VolatileHostInterface.KeyDown VolatileHostInterface.VK_CONTROL
    , followingSteps =
        [ ( "SPACE down", always (Just (VolatileHostInterface.KeyDown (VolatileHostInterface.VirtualKeyCodeFromInt 0x20))) )
        , ( "SPACE up", always (Just (VolatileHostInterface.KeyUp (VolatileHostInterface.VirtualKeyCodeFromInt 0x20))) )
        , ( "CTRL up", always (Just (VolatileHostInterface.KeyUp VolatileHostInterface.VK_CONTROL)) )
        ]
    }

McMahon recently made an observation leading to a similar change. This also displays the distance of the chosen overview entry: