24 April 2016, 11:46 | #1 |
Registered User
Join Date: Sep 2012
Location: Nantes - France
Posts: 138
|
How to make an Workbench Icon running a CLI Script ?
Here is my question :
I have a CLI script, and I want to create a Workbench Icon which launch the CLI a execute the script. The Icon must work with 1.3 and 3.1. How can I do that ? I made the Icon but I have a message "Unable to open your tool" Please be explicit with your answers I'm an amiga noob : For example I don't know how to change files attributes. I used Directory Opus to make the script executable. |
24 April 2016, 11:54 | #2 |
Registered User
Join Date: Oct 2012
Location: South Shields
Posts: 812
|
Set the default tool to IconX (highlight the icon on WB and select information from the menu) and it will execute the script when you click the icon (not sure if that command is on 1.3 but definitely is in 3.x).
|
24 April 2016, 18:57 | #3 | |
Registered User
Join Date: Feb 2008
Location: RNO
Posts: 1,006
|
Quote:
I think IconX came with 1.3, but not with 1.2... there's also 3rd party alternative Xicon. Last edited by jPV; 24 April 2016 at 19:07. |
|
24 April 2016, 20:08 | #4 |
Registered User
Join Date: Sep 2004
Location: Tacoma, WA USA
Age: 52
Posts: 1,915
|
IconX works in 2.x and 3.x just fine. Set default tool type to C:IconX
|
24 April 2016, 21:35 | #5 |
Registered User
Join Date: Mar 2004
Location: finland
Posts: 1,837
|
And in 1.3 (at least) too.
|
24 April 2016, 21:51 | #6 |
Ruler of the Universe
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
|
Can I take the oportunity to ask how to use a script to run a CLI command?
There is a "hidden" option with DOpus5 to "talk" with the AI typing from shell "Help me Eliza!" . I wonder how could I open that option from a script, what tool should I set as default and what command to use. Last edited by Retrofan; 26 October 2017 at 01:05. |
25 April 2016, 22:32 | #7 |
Registered User
Join Date: Sep 2012
Location: Nantes - France
Posts: 138
|
Thank you !
But it has been found it wasn't the problem after all. In fact when I launch the exec from the CLI or with a startup-sequence, evrything is OK. When I create an Icon, launch the workbench, launch with the Icon I have a Path problem : "Error : Cant Locate Virtual World Runner"
It's a 3DCK2 game I made. The floppy structure is this mainly one : Code:
<DIR>Sstartup-sequence<DIR>_ESCAPE(misc. data files...) RUNNERESCAPE I made a script launching Escape and a ICON of the SCRIPT : no luck. Any Idea ? Once again, evrything is just fine under CLI or with a boot / startup-sequence. |
25 April 2016, 22:36 | #8 |
R.I.P Smudge 18-08-16
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
|
Don't make a project icon for the escape executable. Rename your script to say Escape_Run and make a project icon for it. Make the default tool IconX.
In a script you have to type the absolute path to escape or use CD to enter the directory. EDIT: Can upload the escape disk/program?? I could take a quick look for you. |
26 April 2016, 21:51 | #9 | |
Registered User
Join Date: Sep 2012
Location: Nantes - France
Posts: 138
|
Quote:
|
|
26 April 2016, 23:11 | #10 |
R.I.P Smudge 18-08-16
Join Date: Aug 2005
Location: Leicester/UK
Age: 66
Posts: 3,968
|
PM Replied...
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Running Slave from Script | Retrofan | support.Other | 2 | 14 May 2013 14:37 |
CLI program to make mouse pointer dissapear on KS 3.X | Gaula92 | request.Apps | 5 | 21 October 2011 14:49 |
Execute script works but not after adding an icon with IconX as Default Tool. | e5frog | support.Other | 19 | 27 July 2010 10:23 |
Can't open install script's icon | THX1138 | support.Apps | 14 | 01 July 2005 22:42 |
Workbench 1.2 CLI probs | Scatter | support.Apps | 4 | 30 December 2004 17:50 |
|
|