From: John Stone (johns_at_ks.uiuc.edu)
Date: Sun Sep 19 2010 - 19:32:23 CDT

Hi,
  I'm not sure if you're looking for mouse position events only, or
also various types of pick events, but I'd suggest having a look at
the VMD Tcl callback demo script I've attached to this email for examples
of how to catch callbacks. See the VMD User's Guide for the list of
available callbacks and their meaning.

There are some other callbacks for special mouse events and
spaceball 6DOF position data that you can capture as well, but
I'm guessing you're mostly interested in the simple ones that are
well documented in the User's Guide.

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Wed, Sep 15, 2010 at 02:11:41PM -0700, Gianluca Interlandi wrote:
> Hi!
>
> I would like to write a tcl script which is executed by VMD every time the
> user clicks on the Display window and rotates the molecule. Hence some sort
> of mouse event listener. Is there a way to do this through TCL?
>
> Thanks,
>
> Gianluca
>
> -----------------------------------------------------
> Gianluca Interlandi, PhD gianluca_at_u.washington.edu
> +1 (206) 685 4435
> http://artemide.bioeng.washington.edu/
>
> Postdoc at the Department of Bioengineering
> at the University of Washington, Seattle WA U.S.A.
> -----------------------------------------------------

-- 
NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email: johns_at_ks.uiuc.edu                 Phone: 217-244-3349
  WWW: http://www.ks.uiuc.edu/~johns/      Fax: 217-244-6078