From: John Stone (johns_at_ks.uiuc.edu)
Date: Mon Apr 05 2010 - 16:45:53 CDT

Hi,
  You must use the braces {} to protect commands with multiple
arguments or compound command invocations:
  user add key j {rotate x by 2}
  user add key g {menu graphics off ; menu graphics on}

Cheers,
  John Stone
  vmd_at_ks.uiuc.edu

On Mon, Apr 05, 2010 at 11:31:03PM +0200, Rocchia Walter wrote:
> Dear all,
>
>
>
> I'm using VMD 1.8.7 for windows (XP Pro SP3), and I wanted to use some of
> the basic keyboard combinations.
>
>
>
> Then I realized that not all the default hotkeys are set, for example the
> ones allowing scaling (Ctrl-a and Ctrl-z)
>
>
>
> Then I tried setting them by myself:
>
> User add key a scale by 0.9
>
>
>
> Resulting in the following message when I press `a' when the mouse is on
> the main VMD display:
>
> ERROR) scale usage:
>
>
>
> I tried digitizing `scale by 0.9' in the console successfully.
>
>
>
> I also realized that I cannot assign the rotate function:
>
> vmd > user add key s rotate z by -10
>
> vmd > ERROR) rotate usage:
>
> ERROR) rotate stop -- stop current rotation
>
> ERROR) rotate [x | y | z] by <angle> -- rotate in one step
>
> ERROR) rotate [x | y | z] by <angle> <increment> -- smooth transition
>
>
>
>
>
> Any idea?
>
>
>
> Thanks a lot
>
>
>
> Walter
>
> *********************************************************************
>
> Walter Rocchia, PhD
>
> Team Leader - Computational Chemistry
>
> Drug Discovery and Development
>
> ISTITUTO ITALIANO DI TECNOLOGIA
>
> Via Morego 30, 16163 - Genova, Italy
>
> Phone: +39 010 71781552 Room: 1/31
>
> Fax: +39 010 7170187
>
>

-- 
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