Opening A Task Window
Rob Heaton (274) 515 posts |
Is it possible to open a new taskwindow from an Obey file? Also if I set the Wimpslot in the Obey file prior to opening a taskwindow, will the taskwindow use that wimpslot? I’m trying to create an Obey file to filer_run !GCC, set the Wimpslot and launch a new taskwindow. |
Rick Murray (539) 13840 posts |
Read this – but the caveat is to note the line at the bottom. A way to do this is to make a dead simple little Wimp program in BASIC to start, issue the call, then quit. Alternatively, try using a TaskObey file? That might work. For the memory slot setting – note the -WimpSlot parameter. |
Rick Murray (539) 13840 posts |
Or you could perhaps play with *TaskManager_StartTask ? I ran into a similar issue myself a little while back when I wanted to start a task from a module. All these years, I never realised until recently that there is no obvious/easy mechanism to start a Wimp task when you technically aren’t in the Wimp environment. |
Rob Heaton (274) 515 posts |
Cheers Rick! |
Rob Heaton (274) 515 posts |
hmmm or not! |
Fred Graute (114) 645 posts |
It’s working fine here but you have to be aware of how the wimpslot is set. It will always use the Next slot size unless -Min is bigger or -Max is smaller. |
Rick Murray (539) 13840 posts |
Did you specify xxxK for the slot size? Otherwise, try @ Fred: there is no min/max in the TaskWindow call, so it should be reasonable to assume that it will assign what you ask (within the constraints of page size, of course). |
Rob Heaton (274) 515 posts |
Working now! Thanks Gents. |
Fred Graute (114) 645 posts |
Thanks Rick. I had been thinking of: *WimpSlot -Min xxxK -Max yyyK *TaskWindow -Display Should have looked up the TaskWindow command first. That’s what you get when rushing out a reply whilst doing other stuff. |