Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.acorn.programmer > #533
| From | druck <news@druck.org.uk> |
|---|---|
| Newsgroups | comp.sys.acorn.programmer |
| Subject | Re: Starting a program from a taskwindow |
| Date | 2011-07-09 09:40 +0100 |
| Organization | A noiseless patient Spider |
| Message-ID | <iv945f$sc8$1@dont-email.me> (permalink) |
| References | <1bf8b0ef51.Thomas@thomas-milius.t-online.de> |
On 08/07/2011 19:03, Thomas Milius wrote: > What is the best way to start program with WIMP interaction with parameters > from another program running as task window? You can't run any wimp program from within a task window. The wimp will get very confused and it may crash the desktop. > The task window should pause until the child program terminates. Task Window tasks cant suspend them selves, thats under the control of the task window manager (Edit, Zap, GraphTask, etc) > Wimp_StartTask doesn't seem to work if used within a taskwindow. > > Filer_Run would be an alternative but doesn't allow passing parameters and > the "parent" task would run all the time in background except I would do an > OS_Upcall 6 to it and the child task would fill the poll word at its end. I > also would have to allocate RMA space by the parent task (which in my case > could be a BASIC program). I doubt that would work. The easiest and best option is to not to use a taskwindow, recode the program as wimp task working on null events from a wimp_poll idle. It is then free to start wimpt tasks and wait for them. The only alternative would be to write a background monitoring wimp task which waited for a message from the task window task, and then launched a wimp application. Task window tasks can send messages, but they can't receive them, so to notice the child terminating you would have to use another mechanism such as a system variable, but this has concurrency issues. ---druck
Back to comp.sys.acorn.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Starting a program from a taskwindow Thomas Milius <Thomas-Milius@t-online.de> - 2011-07-08 20:03 +0200
Re: Starting a program from a taskwindow Jeremy Nicoll - news posts <jn.nntp.scrap007@wingsandbeaks.org.uk> - 2011-07-08 19:44 +0100
Re: Starting a program from a taskwindow druck <news@druck.org.uk> - 2011-07-09 09:42 +0100
Re: Starting a program from a taskwindow druck <news@druck.org.uk> - 2011-07-09 09:40 +0100
Re: Starting a program from a taskwindow James Lampard <dontreplytothis@mailinator.com> - 2011-07-09 01:55 -0700
Re: Starting a program from a taskwindow druck <news@druck.org.uk> - 2011-07-09 14:21 +0100
Re: Starting a program from a taskwindow Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-07-13 06:07 +0200
Re: Starting a program from a taskwindow James Lampard <dontreplytothis@mailinator.com> - 2011-07-09 01:41 -0700
Re: Starting a program from a taskwindow Thomas Milius <Thomas-Milius@t-online.de> - 2011-07-10 11:07 +0200
Re: Starting a program from a taskwindow Vince M Hudd <vinceh@softrock.co.uk> - 2011-07-10 11:56 +0100
Re: Starting a program from a taskwindow "Ste (news)" <steve@revi11.plus.com> - 2011-07-11 11:34 +0100
Re: Starting a program from a taskwindow Thomas Milius <Thomas-Milius@t-online.de> - 2011-07-11 22:26 +0200
Re: Starting a program from a taskwindow Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-07-13 06:16 +0200
Re: Starting a program from a taskwindow "Ste (news)" <steve@revi11.plus.com> - 2011-07-14 15:56 +0100
Re: Starting a program from a taskwindow Rick Murray <heyrickmail-usenet@yahoo.co.uk> - 2011-07-16 06:38 +0200
csiph-web