09 July 2023, 11:48 | #1 |
Registered User
Join Date: Jul 2022
Location: UK
Posts: 134
|
WBRun Help
I'm trying to finalise my setup of ButtonMenu on Amiga OS.3.2 using a zipped archive taken from another install which contains the BMenu folder, I just need to install some missing programs and tweak some config.
Things are mostly working as expected but it seems I do not have WBRun installed, so any buttons that open a program don't work. I downloaded the WBRun.lha and copied the two files into my BMenu drawer: WBRUN WBRUN.c If I open a shell and try the command: WBRun SYS:Prefs Couldn't load "System:Prefs" Object is not of the required type Am I correct in stating that WBRun isn't avaulable out of the box with OS 3. After copying the 2 WBRun I also had to copy parm.Library from the Libs drawer of classic WB, so what am I doing wrong, any tips would be appreciated. Thanks. |
09 July 2023, 12:28 | #2 |
Registered User
Join Date: Mar 2010
Location: Beckenham/England
Posts: 796
|
With OS3.2 it is probably better to use the wbrun found in this archive:
https://www.stephan-rupprecht.de/dow...WBStartEmu.lha SYS:Prefs is a drawer not an executable. |
09 July 2023, 12:35 | #3 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,304
|
Usually WBRun should be copied to SYS:C but it can be placed somewhere else. It is a good idea to have it somewhere in the search path. WBRUN.c seems to be the source file and isn't needed.
You get the error message because you try to open a directory what fails because it "is not of the required type". If you select a program then it should start it as expected. |
09 July 2023, 13:45 | #4 |
Registered User
Join Date: Jul 2022
Location: UK
Posts: 134
|
Thanks, i was trying WBRun SYS:Prefs because I have a button with dos command:
Opendrawer SYS:Prefs That didn't work and I Googled it, I thought I saw that WBRun would work also. Are there any special requirements to make the Opendrawer command work? Last edited by spacebiscuit; 11 July 2023 at 14:23. |
09 July 2023, 15:33 | #5 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,304
|
http://aminet.net/package/util/cli/OpenDrawer seems to be an OS3.5 (only) program. Because you are using OS3.2 you don't need an external program to open a directory. OS 3.2 (or any other version with a Workbench Arexx port, i.e. >=OS3.5) can do it. In fact there is already a script for OS3.5 on Aminet ( http://aminet.net/package/util/wb/openwb ). However, OS3.2 should already come with an example.
|
09 July 2023, 16:35 | #6 |
Paranoid Amigoid
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
|
I suggest to use WBLoad from OS3.2.x
WBRun requires wbstart.library as well iirc. Also you don't need any OpenDrawer command under OS3.2.x. The arexx script S:win is all you need (for example S:win SYS:Prefs opens Prefs drawer) |
09 July 2023, 22:56 | #7 | |
Registered User
Join Date: Jul 2022
Location: UK
Posts: 134
|
Quote:
S:win SYS:Prefs |
|
10 July 2023, 09:04 | #8 |
Registered User
Join Date: Jan 2002
Location: Germany
Posts: 7,001
|
Try Execute S:win SYS:Prefs as command.
|
10 July 2023, 09:09 | #9 |
Paranoid Amigoid
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
|
I don't understand clearly but lets make the following example:
Create a script using for example TexEdit in RAM:OpenPrefs with the following line only: S:win SYS:Prefs if you put an icon (project) and put IconX in the default tool then if you double click the OpenPrefs icon the Prefs drawer will open Edit: I just saw Thomas's reply as I was writing. I was about to say that as well, although I saw that the Script bit is already set in the file's properties. |
10 July 2023, 10:47 | #10 |
Registered User
Join Date: Jul 2022
Location: UK
Posts: 134
|
Hi Guys - as mentioned, from the shell the command works and will open the drawer, but from ButtonMenu the button does not respond when it has been assigned the same command:
|
10 July 2023, 12:01 | #11 | |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,252
|
Quote:
WBRun works very well to open a path in window (WBLoad can't do it) or run an App, see screenshot Error Couldn't load "System:Prefs", you probably have a conflict somewhere, could be your "Volume" is called "System" rename to "DH0" or other name. Be careful if you change Volume Name, you have to correct all the preference paths, example the one used for wallpapers,or aaltro, you can replace with DH0, or better with SYS (in this way you can change the volume name without changing anything anymore). Which Menu Buttons are you using, to work from the menu, this must have the ability to run WBRun from Shell, so in the request you can write the path or file to open Last edited by AMIGASYSTEM; 18 July 2023 at 11:12. |
|
10 July 2023, 13:39 | #12 |
Paranoid Amigoid
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
|
S:Win is an Arexx script so try putting the following declaration in DOS Command:
SYS:Rexxc/RX S:Win SYS:Prefs That should do the trick |
10 July 2023, 13:56 | #13 |
Registered User
Join Date: Jul 2022
Location: UK
Posts: 134
|
SYS:Rexxc/RX S:Win SYS:Prefs - works
About my volume name, the icon on the workbench is "System" so I guess as AmigaSystem said I should rename it. Can I just rename the icon or have I got to use a tool such as HTToolBox? I mostly changed any programs to open using WBload, is there any need or recommendation to install WBRun too? |
10 July 2023, 14:08 | #14 | |
ex. demoscener "Bigmama"
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
|
Quote:
By convention, Amiga uses DHx for harddrive device names. Mostly people will set the volume name to something that identifies the purpose of the volume, e.g. "System", "Games", "Data", etc. I don't think you need to rename your System volume (it was probably named like that by the OS installer) unless you can come up with something that better describes its purpose Last edited by hooverphonique; 10 July 2023 at 15:55. |
|
10 July 2023, 15:04 | #15 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,304
|
|
10 July 2023, 15:50 | #16 | |
Paranoid Amigoid
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
|
Coolio I mostly use it via ToolsDaemon (having a Drawer's category where I select Temp, Files, Prefs etc) by using S:win []
Quote:
Also some programs might not find the prefs but it's easy to find and fix I haven't found a single need in order to have WBrun/wbstart.library) installed under 3.2.x, so I guess no |
|
10 July 2023, 18:10 | #17 |
Registered User
Join Date: Jul 2022
Location: UK
Posts: 134
|
BTW it seems I do have WBRun because I have a working button with:
WBRun SYS:Prefs/WBPattern So it seems sub-folders work, just not the 'Prefs' itself |
10 July 2023, 19:27 | #18 |
Registered User
Join Date: Oct 2009
Location: Germany
Posts: 3,304
|
No. SYS:Prefs is a directory and SYS:Prefs/WBPattern is a program. It seems that WBRun works as expected.
|
10 July 2023, 20:53 | #19 |
Registered User
Join Date: Jul 2022
Location: UK
Posts: 134
|
D'oh of course
|
10 July 2023, 21:53 | #20 | |
Registered User
Join Date: Jun 2020
Location: Germany
Posts: 370
|
Quote:
Although it might be possible to do it with Scalos. If I remember correctly it comes with a tool that sounds like it would do the trick. Never tried it thought. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ClassicWB GAAE - WBRun fix | seanys | project.ClassicWB | 0 | 16 March 2017 10:10 |
Passing parameters to a script via WBRun | mfilos | support.Other | 18 | 14 January 2014 22:29 |
|
|