Message Boards Message Boards

0
|
1952 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

RunScheduledTask[] and ChoiceDialog[] Causes a Crash

Posted 10 years ago

If I run the following...

task = RunScheduledTask[MessageDialog["What do you want to do?"], 5]

...things seem to work fine.

But if I run...

task = RunScheduledTask[ChoiceDialog["What do you want to do?"], 5]

...Mathematica hangs, presumably because of something to do with MessageDialog[] not returning a value, whereas ChoiceDialog[] does.

Does anyone know of any way around this? I have tried wrapping ChoiceDialog[] in a function which itself returns nothing, then wrapping that in RunScheduledTask[].

But what I really want to achieve is to run a scheduled task that asks the user whether they want to do something or not, so I am stymied.

POSTED BY: Brad Varey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract