OS/2, eCS & ArcaOS - Technical > Games

Minecraft

<< < (8/9) > >>

Dave Yeo:
Tested again, this time with the browser shutdown. It worked, bringing up https://www.classicube.net/acc/register/. Once SeaMonkey was running, tried again, new window with about: once again came up.
Noticed that when I started ClassicCube from a command prompt, the prompt output was,

--- Code: ---F:\games\ClassiCube>ClassiCube.exe
Starting ClassiCube 1.3.6 ..
Adding http://cs.classicube.net/client/builds.json (type 0)
Fetching http://cs.classicube.net/client/builds.json (GET)
HTTP: result 0 (http 200) in 322 ms (94 bytes)
Going back to sleep...
Going back to sleep...
DIVE is disabled - Panorama's shadow-buffer is enabled
[calBackendLoader] Using libical backend at Z:\mozprofiles\Mozilla\SeaMonkey\Profiles\2nf8z26q.new\extensions\{e2fda1a4-762b-4020-b5ad-a41df1933103}\components\libical-manifest
DIVE is disabled - Panorama's shadow-buffer is enabled

--- End code ---
Closing ClassicCube left the cmd prompt looking like it was still open and when I pressed CTRL-C, not only did ClassicCube finish closing, so did SeaMonkey.
On the command line, entering "seamonkey https://www.classicube.net/acc/register/" works as expected, new window opens with the page loaded.
Seems like DosExecPgm needs something like "start" to have a new instance of the browser.

Dave Yeo:
Looking at the documentation, I guess you need to pass one as the execFlag parameter instead of zero.
Edit: Remember to test both with the browser running and not running.
Edit2: or perhaps DosStartSession() would be better to use.

Rich Walsh:

--- Quote from: Jochen Schäfer on April 11, 2024, 09:22:35 am ---How would I change the default browser settings?

--- End quote ---

You don't need a third-party app. Open any URL object's Properties to the 'Browser' tab, fill in the details, then press the 'Set Default' button below.The info ends up in os2.ini->WPURLDEFAULTSETTINGS->DefaultBrowserExe and ->DefaultWorkingDir.


--- Quote from: Dave Yeo on April 11, 2024, 06:51:41 pm ---perhaps DosStartSession() would be better to use.

--- End quote ---

If this is linked as a PM app or gets morphed into one, use WinStartApp() - much easier.

Jochen Schäfer:
Well, I just got DosExecPgm working (added the exe name to the parameter list).

@Rich: Does WinStartApp detach from the parent (apart from the sending the termination message)? Other advantages over DosExecPgm?

David McKenna:
Hi Jochen,

  This last version does open the browser on the register page - thanks!

Regards,

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version