There are ways to make pseudo TSR routines for multitasking off a master program...
I mean you could just use a key monitoring system with ON JEY or a custom monitoring DO/INKEY$/LOOP routine and when a hot key is pressed, the program shells to another program...
PRINT "Press F1 to Open Internet Explorer or Esc to quit."
key$ = INKEY$
SELECT CASE key$
CASE CHR$(0) + CHR$(59)
REM Open Internet Explorer to Google.
SHELL "CMD /C START iexplore www.google.com"
REM Other program stuff here...
Next step, go further and create a separate program that the SHELL statement above calls. It would control stuff to do while online. The problem is that QB programs get minimized and although they get monitored in XP while minimized, this didn't occur in 98, 95, etc., they don't respond to anything but the passage of time and any time related events until they are put back up on the screen. That can be done by Alt Tab, or making a Windows hotkey in the properties of a shortcut created after making the porgrams into exe files in QB4.5 or PDS.
You can also compile stand-alone qb exe programs and have them run at the same times, even communicate with each other as they run by passing variables between a time-monitored data file. A single SHELL statement can also be used to open the main program and "others" all at once, with the 'others' running minimized.
If you have something different in mind or you are looking for a more sophisticated approach, I suspect that would require some ASM and Interrupt assistance. The are a couple of programmers here that might be able to help you out there, but first it would help us to know the complexity of the project you are trying to build.
|Response Title||Author and Date|
|ehm... I need something a bit more complex||angros47 on Nov 19|
|So you are interested in something like this?||Pete on Nov 19|
|Why would anybody want a TSR? They use up resources.||on Nov 19|
|Well, apparently the OP does.||Pete on Nov 19|
|* I already use that in all of my QB batch files. My PC fan goes on high speed anyhow.||on Nov 19|
|Re: Why would anybody want a TSR? They use up resources.||Laanan Fisher on Nov 19|
|GIMI is interpreted||angros47 on Nov 19|
|*you could use call absolute to multitask machine code in qbasic||Ben on Nov 19|
|But how can I write the multitask code? And how can I load/unload it?||angros47 on Nov 19|
|* Try the free Demo download first. I'd give it to you if I had a copy.||on Nov 20|