English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 18 December 2019, 19:15   #1
CFOU!
Moderator
CFOU!'s Avatar
 
Join Date: Sep 2004
Location: France
Age: 47
Posts: 2,803
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.
CFOU! is offline  
Old 19 December 2019, 11:57   #2
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,993
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.
thomas is offline  
Old 19 December 2019, 12:58   #3
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 396
Quote:
Originally Posted by CFOU! View Post
but this command use function OpenWbObjet (-96) and workbench.library v44+ need

so it's not compatible with all workbench 3.0 /3.1

I'll looking for a generic code to replace quickly thi function for compatibility with classic workbench

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!
Thomas Richter is offline  
Old 19 December 2019, 13:03   #4
CFOU!
Moderator
CFOU!'s Avatar
 
Join Date: Sep 2004
Location: France
Age: 47
Posts: 2,803
Quote:
Originally Posted by thomas View Post
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.
thanks but in fact i use it to open window using directory path as object and not to launch a program.

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.
CFOU! is offline  
Old 19 December 2019, 14:08   #5
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,993
You cannot open Workbench windows on WB 3.1 and below.
thomas is offline  
Old 19 December 2019, 16:44   #6
CFOU!
Moderator
CFOU!'s Avatar
 
Join Date: Sep 2004
Location: France
Age: 47
Posts: 2,803
Quote:
Originally Posted by thomas View Post
You cannot open Workbench windows on WB 3.1 and below.
I know... it's for that if i ask if another coded are already made a generic function to 'emulate' OpenWBObject of workbench.library (V44+) on old WB3.0&3.1 (workbench.library V39.x & V40.x by example)
CFOU! is offline  
Old 19 December 2019, 16:56   #7
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,993
You cannot open Workbench windows on WB 3.1 and below from a program. It is not possible.
thomas is offline  
Old 19 December 2019, 16:59   #8
CFOU!
Moderator
CFOU!'s Avatar
 
Join Date: Sep 2004
Location: France
Age: 47
Posts: 2,803
Quote:
Originally Posted by thomas View Post
You cannot open Workbench windows on WB 3.1 and below from a program. It is not possible.
so it's clear now
CFOU! is offline  
Old 19 December 2019, 17:00   #9
CFOU!
Moderator
CFOU!'s Avatar
 
Join Date: Sep 2004
Location: France
Age: 47
Posts: 2,803
Quote:
Originally Posted by thomas View Post
You cannot open Workbench windows on WB 3.1 and below from a program. It is not possible.
so it's clear now so it's normal i am not found solution !
CFOU! is offline  
Old 19 December 2019, 17:03   #10
thomas
Registered User
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 5,993
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.
thomas is offline  
Old 19 December 2019, 18:23   #11
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 396
Quote:
Originally Posted by CFOU! View Post
so it's clear now so it's normal i am not found solution !
I afraid there is no solution. The workbench v40 does not offer an interface for it.
Thomas Richter is offline  
Old 19 December 2019, 22:25   #12
Minuous
Coder/webmaster/gamer
Minuous's Avatar
 
Join Date: Oct 2001
Location: Canberra/Australia
Posts: 2,071
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.
Minuous is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 08:02.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Page generated in 0.07823 seconds with 15 queries