oops, forgot the TIMEOUT command -- probably the coolest thing. I needed
this capability for an animation that needed to run continuously but still
allow user mouse action at the browser level to fire


timeout ID "mytimeout" 1000 "echo hello!"
timeout ID "mytimeout" 0.1 "echo hello!"

Runs a script after a designated number of milliseconds (integer) or seconds
(decimal). Similar to a setTimeout action in JavaScript, but all within
Jmol. Like setTimeout, time is in milliseconds. The ID keyword is optional,
but the id itself must be there. Quotes are optional on the id if it is a
simple word.

timeout ID "mytimeout" -1.0 "echo the time now in milliseconds since I don't
know when is @{now()}"

A negative time in milliseconds or seconds indicates that the timeout should
continue indefinitely after abs(time).

timeout ID "mytimeout" OFF

Removes a pending timeout.

timeouts OFF

Removes all pending timeouts.

show TIMEOUTS

Lists all pending timeouts and where they are in the process




-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to