Visual LISP, AutoLISP and General Customization
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Stop when ESC is pressed
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
107 Views, 1 Replies
03-27-2009 04:40 AM
Hi!
I made a little programme, that demonstrates Monte Carlo method. In this I would like to use a while loop, so it draws points until user presses ESC or ENTER.
How can I do this? What I've tried so far just made an error when ESC was pressed.
Thx for your help!
I made a little programme, that demonstrates Monte Carlo method. In this I would like to use a while loop, so it draws points until user presses ESC or ENTER.
How can I do this? What I've tried so far just made an error when ESC was pressed.
Thx for your help!
Re: Stop when ESC is pressed
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-27-2009 02:50 PM in reply to:
sunchase
(while (> (getvar "cmdactive") 0) (command pause) );while
???
???
