Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Auto relaunch of running program
#3
Use "TIMER" function to keep track of how much time is being spent. Use "RUN" to launch another EXE file. But have you been doing this already? Oh no, if this is the case what else is M$ breaking in "Win-does-not One One"?

If you need to preserve data between runs of the same program that is yours, you'll have to save the data into a file so it could be read back on the next try, otherwise you're out of luck. "CHAIN" and "COMMON SHARED" aren't supported like 16-bit, there are too many security implications involved and some people like to do the sort of thing while online, that you're asking for.

You could still come up with a QB64 program that works as timer, to manage the "automatic" program runs but there's no control over the data sharing if you don't have the source code for the EXE file of the program you want to start and restart.

If you simply cannot have two instances of the same program, one trying to end its session while the other one is starting, then it's possible to check in memory for the program residing there but it requires strong Win API stuff. Maybe it's the same as in Linux, asking the program politely to finish, before starting a new session with it. Sometimes however the program refuses to finish because it hung up...
Reply


Messages In This Thread
Auto relaunch of running program - by Richard - 12-30-2022, 03:14 AM
RE: Auto relaunch of running program - by mnrvovrfc - 12-30-2022, 05:03 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Running QB64 v2 InForm Programs on PE Magdha 2 365 11-19-2025, 11:10 AM
Last Post: Magdha
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,080 11-10-2025, 07:23 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 226 10-26-2025, 06:58 PM
Last Post: madscijr
  Compiler and Running Disagree Vespin 4 884 10-15-2024, 06:45 PM
Last Post: Kernelpanic
  Detect running from IDE mdijkens 1 587 02-12-2024, 02:59 AM
Last Post: FellippeHeitor

Forum Jump:


Users browsing this thread: 1 Guest(s)