Yes. Exactly. Here's what I'm thinking.
1. Click toggle button (which makes the script loop looking for a point)
2. grab pen tool and make a point (the script recognizes and places the shapes)
3. Turn off toggle when I'm done which deactivates the script.