18 December 2019, 19:15 | #1 |
Moderator
Join Date: Sep 2004
Location: France
Age: 50
Posts: 4,277
|
Workbench.library V44 + OpenWBObject generic remplacement code for classic WB 3.0
Hi,
I had coded longtimes ago an command named WHDAutoLaunch: http://eab.abime.net/showthread.php?threadid=19691 but this command use function OpenWbObjet (-96) and workbench.library v44+ is needed so it's not compatible with all workbench 3.0 /3.1 I'll looking for a generic code to replace quickly this function for compatibility with classic workbench Have somebody already coded this ? Last edited by CFou!; 19 December 2019 at 16:45. |
19 December 2019, 11:57 | #2 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,001
|
You could use wbstart.library http://aminet.net/package/util/libs/WBStart
Doing it completely on your own without an external library is rather difficult because you have to consider many different kinds of icons. And your program has to stay active until the started program returns the wb msg. Wbstart.library does all that for you. |
19 December 2019, 12:58 | #3 | |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,233
|
Quote:
What precisely do you need? OpenWBObject() has two different purposes: Open a window on the workbench if the object is a directory, or loading and starting a program as if its icon was double clicked on the workbench. For the latter: The CLICon archive (see aminet) http://aminet.net/util/wb/CLICon.lha contains a tiny shell tool "WBLoad" which does this for you. It requires a tool or project icon from which a program is run and started. Hi thanks for your ansqer. I use it to open a window on the workbench with directory as object in fact! |
|
19 December 2019, 13:03 | #4 | |
Moderator
Join Date: Sep 2004
Location: France
Age: 50
Posts: 4,277
|
Quote:
See following video to see usage of command i want update (OpenFolder Option) [ Show youtube player ] Last edited by CFou!; 19 December 2019 at 16:12. |
|
19 December 2019, 14:08 | #5 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,001
|
You cannot open Workbench windows on WB 3.1 and below.
|
19 December 2019, 16:44 | #6 |
Moderator
Join Date: Sep 2004
Location: France
Age: 50
Posts: 4,277
|
|
19 December 2019, 16:56 | #7 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,001
|
You cannot open Workbench windows on WB 3.1 and below from a program. It is not possible.
|
19 December 2019, 16:59 | #8 |
Moderator
Join Date: Sep 2004
Location: France
Age: 50
Posts: 4,277
|
|
19 December 2019, 17:00 | #9 |
Moderator
Join Date: Sep 2004
Location: France
Age: 50
Posts: 4,277
|
|
19 December 2019, 17:03 | #10 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,001
|
You would need the source code of workbench.library and add this function in the code.
Maybe the leaked WB3.1 source code could help. |
19 December 2019, 18:23 | #11 |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,233
|
|
19 December 2019, 22:25 | #12 |
Coder/webmaster/gamer
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,640
|
OS3.0 and 3.1 are very obsolete and lacking lots of features. Upgrading to OS3.9 will solve this particular problem and many others.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No signals in library open/close code? | AGS | Coders. System | 10 | 29 November 2017 17:31 |
well i have update my Workbench to Classic Workbench | mcbone | Amiga scene | 0 | 02 May 2015 21:22 |
Requesting icon.library v44+... | nikvest | request.Other | 2 | 16 September 2007 01:58 |
looking for Amigaguide.library v44.5 patch | voxel | request.Apps | 5 | 03 October 2006 20:44 |
asl.library V44 needed | lopos2000 | support.Apps | 2 | 29 July 2005 21:37 |
|
|