Welcome, Guest. Please login or register.

Author Topic: Running workbench programs from another program  (Read 3304 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline TrickyTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2005
  • Posts: 127
    • Show all replies
    • http://www.jigsawlounge.co.uk/kungfu/
Running workbench programs from another program
« on: May 29, 2006, 09:48:51 PM »
Does anybody know, if it is possible to run a workbench program from another program, as if you had double clicked on its own icon?  I know there is the exec function of dos.library... is there an equivalent for Workbench programs?

Also is there a function to open a directory view window on the Workbench screen as if you had double clicked on the drawer icon?
[A1200/060, 32Mb fast RAM, 1.2Gb HDD, 19\\" Acer TFT Monitor]
I never write anything that won\\\'t run on a stock A1200.  That\\\'s the Jigsaw Lounge Guarantee.
 

Offline TrickyTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2005
  • Posts: 127
    • Show all replies
    • http://www.jigsawlounge.co.uk/kungfu/
Re: Running workbench programs from another program
« Reply #1 on: May 29, 2006, 09:57:16 PM »
This is exactly what I need... only for WB3.1...

I wonder if the command will run on 3.1, even though it's supplied only with 3.5+.

@amije
I know of IconX, but surely that is for running CLI commands from Workbench, not the other way round?  I want to call up a Workbench program from within another program (not a script).
[A1200/060, 32Mb fast RAM, 1.2Gb HDD, 19\\" Acer TFT Monitor]
I never write anything that won\\\'t run on a stock A1200.  That\\\'s the Jigsaw Lounge Guarantee.
 

Offline TrickyTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2005
  • Posts: 127
    • Show all replies
    • http://www.jigsawlounge.co.uk/kungfu/
Re: Running workbench programs from another program
« Reply #2 on: May 29, 2006, 10:02:20 PM »
@motorollin
Oh!  Now that looks exactly what I want...
Shame the course is in C and not ASM... I can't do C.

also, never heard of parm.library.  And I should be more aware of Aminet in future!
[A1200/060, 32Mb fast RAM, 1.2Gb HDD, 19\\" Acer TFT Monitor]
I never write anything that won\\\'t run on a stock A1200.  That\\\'s the Jigsaw Lounge Guarantee.
 

Offline TrickyTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2005
  • Posts: 127
    • Show all replies
    • http://www.jigsawlounge.co.uk/kungfu/
Re: Running workbench programs from another program
« Reply #3 on: May 29, 2006, 10:17:19 PM »
@moto
I shall work it out.  C isn't so hard to understand, I just don't have a compiler for it!

Anyways, the program I intend to make is very simple.  The theory goes as thus:
You create a project icon.  Its default tool is my program.  It also has a tooltype that contains a path to the other program you want to run.

Add a companion program that simply makes such an icon for you (that you can add to your custom workbench menu), and Hey ho - windows-style shortcuts!  Without mucking about with scripts.
[A1200/060, 32Mb fast RAM, 1.2Gb HDD, 19\\" Acer TFT Monitor]
I never write anything that won\\\'t run on a stock A1200.  That\\\'s the Jigsaw Lounge Guarantee.
 

Offline TrickyTopic starter

  • Full Member
  • ***
  • Join Date: Aug 2005
  • Posts: 127
    • Show all replies
    • http://www.jigsawlounge.co.uk/kungfu/
Re: Running workbench programs from another program
« Reply #4 on: May 29, 2006, 11:01:59 PM »
@Piru
Ohhh...

now that is EXACTLY exactly what I wanted.  Thank you so much!

Is the WBstart include file in the source archive?  Only that's a bit too big to put on a floppy to get onto my Amiga... how primitive I am!

Must find Linux app that extracts lha...

EDIT: now i come to think of it, I might already have it in my includes folder.
[A1200/060, 32Mb fast RAM, 1.2Gb HDD, 19\\" Acer TFT Monitor]
I never write anything that won\\\'t run on a stock A1200.  That\\\'s the Jigsaw Lounge Guarantee.