Tcl has the ``trace'' command which registers a procedure to be called when a variable is read, changed, or deleted. (Please see one of the various Tcl books for examples on how to use this.)
Since VMD sets the vmd_pick_atom and vmd_pick_mol variables, they can be traced.