Tim, I forgot two little things:

local stoploop

command runTheLoop
  put empty into stoploop -- as stoploop is a "permanent" variable, it should 
already contain "S" and the loop will not run
  repeat forever
     if stoploop = "S" then exit repeat
     -- do what you want
     wait 10 milliseconds with messages
  end repeat
end runTheLoop

on keyDown thekey
   put thekey into stoploop
   pass keydown -- depends of what else is in your card script, without this 
line something else could be blocked...
end keydown

Sorry, I was answering too quickly !

Jacques

******************************************
Prof. Jacques Hausser
Department of Ecology and Evolution
Biophore / Sorge
University of Lausanne
CH 1015 Lausanne
please use my private address:
6 route de Burtigny
CH-1269 Bassins
tel/fax:        ++ 41 22 366 19 40
mobile: ++ 41 79 757 05 24
E-Mail: jacques.haus...@unil.ch
*******************************************

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to