Hi, I think I would need a mouse hook to accomplish my task. But anyway, basically I want to get a mouse click (down) get the coordinates, then while its dragging if possible draw a box then when released get the coordinates of the second point. Thus then I can use these rectangle coordinates.


Does this have to be done in a hook? I do want it outside of my application, hence automatically thought "hook". To be honest, I think I really understand hooks fine, but then someone's example on the internet confuses me.

Oh the overall effect I want is to be able to take screenshots from a specific portion of the screen. Lame right? I just heard about apples utility of this and thought it was cool and wanted to make my own.



Appreciate input,



-Hiroshi