Yes that is at least part of what I want, and I installed 1.2 on another card, and found that on my A590 it does behave that way, as it does on 1.1. However, on the other guy's A640, he is getting slower shutter speeds when the ISO is not maxed out. It's possible this results from his max ISO setting of 320, which may not exist on his camera, or perhaps the difference between "market" and "real" something. He said most of the pictures were "around ISO 300" when the shutter speed was 1/250 or so (with the setting being 1/1000 minimum).
So I suspect it's working more or less on his camera, although not as I told him it would. But the bigger issue involves the aperture question, as well as what happens in Program mode.
You said after it sets the ISO it recalculates the correct shutter speed. But what if you're in Program mode? In P mode with ISO set to Auto, the camera will normally want to control all three factors. But your code has now set the ISO and shutter speed. Does the camera accept those fixed values and calculate the aperture? Or is your code running AFTER P mode has done it's calculations, so that it just accepts the what the camera's P mode has chosen for aperture?
My bias in this is what I need to have for KAP. The biggest problem is that the camera is constantly moving, so a fast shutter speed is the most important thing. At the same time, in low light sometimes you really do need to slow down the shutter just to get the shot at all. So the Custom Auto ISO function is really useful. But the problem is that it lets the shutter slow down even though the aperture hasn't been maxed. Would it be possible to change the code to include aperture control, at least in P mode?
So after the last step you described when the "final" shutter speed is determined, if that speed is slower than the target setting, but the aperture is not wide open (for those cameras that have an aperture), it would open up the aperture enough to get back to the target speed, or until it's wide open.