OK, now I understand what you are trying to build. Something that looks like Walthers "Overhead Traveling Crane" # 933-3102 (12 3/16 x 8 5/8 inch footprint) but inside a building. Not like their "Operating Gantry Crane"# 441-76501. Right?
What is the Length and Width of the building footprint? If you look at their "Heavy-Duty Overhead Crane" # 933-3150 you will see that it measures 11 x 2 3/8 x 2 5/16 inches. Is your building wider than 11 inches? If it is you could just expand the size and scratch build it.
For the rails that run the length of the building you could use H beams turned on their sides to make a "channel" for the bridge structure's wheels to travel in. You could use small rubber wheels connected to a small DC geared motor. But that would require a DC power cord that is problematic. I would use the threaded rod with long coupler and motor that is mounted at the end of the rod. That allows you to use a DPDT switch to move the bridge forward and back the length of the building.
The bridge could use HO track (without the ties) mounted on top of the two gerders that make up the bridge. A small geared HO power truck (slow) would move the hook / magnet carriage from one side of the building to the other. Power would be through the HO rails. Getting the power to the rails could be by having metal strips along the H rails and one metal wheel on either side of the building. A DPDT switch would control the left / right movement.
The Hook carriage would needs another geared motor with a winding drum to lower and raise the hook. Powering it requires a separate power supply system than the one that powers the carriage because the hook motor needs it's own DPDT switch. I am sure you can figure that out similar to the other methods. The magnet of course will require yet another method and DPDT switch.
Hope this is helpful in your quest for a neat accessory.
Paul Goodness