Just a little pedantic, but duct taping a flashlight underneath a semi-auto pistol wouldn't work. Every time you fire the slide would go back to chamber the next round either breaking the duct tape or, more likely, jamming the pistol.
You also wouldn't be able to chamber the first round to begin with.