How to 'stop' a script running (or 'unload' it) - General Help and Assistance on using CHDK stable releases - CHDK Forum  

How to 'stop' a script running (or 'unload' it)

  • 4 Replies
  • 3969 Views
How to 'stop' a script running (or 'unload' it)
« on: 25 / December / 2010, 01:33:10 »
Advertisements
I have only one script, the intervalometer .BAS. I loaded the script, and I can run the script, but now, when I use the [alt] button, *all* I do is run the script.

I have to 'interrupt' the script to "stop" it (with the shoot button) and then I can walk around the CHDK menu etc, but, at reboot, the [alt] button launches the script again. And again. and again.

Is there an 'off' button to stop running a script? Is this because I only have one script?

A720IS.

-G

PS I like the script. I just expected that there was an 'unload' function to match the 'load' function.

*

Offline reyalp

  • ******
  • 12796
Re: How to 'stop' a script running (or 'unload' it)
« Reply #1 on: 25 / December / 2010, 02:43:49 »
The script should not run unless you click the shutter while in alt mode. Alt mode always shows you the currently selected script, but that doesn't mean it's running, it just tells you which script would be run if you clicked the shutter. If it is actually starting just by going into alt mode, something is very wrong.

If things are working correctly, there is no need to "unload" a script, but you can go back to the default script by loading default.bas from the SCRIPTS directory.

If the script starts when you start the camera, then you have "script autostart" enabled in the script menu.
Don't forget what the H stands for.

Re: How to 'stop' a script running (or 'unload' it)
« Reply #2 on: 25 / December / 2010, 15:58:27 »
The script should not run unless you click the shutter while in alt mode. If it is actually starting just by going into alt mode, something is very wrong.

Nope. just loading. All well there.

Quote
If things are working correctly, there is no need to "unload" a script, but you can go back to the default script by loading default.bas from the SCRIPTS directory.

Used the OSX java tool to install the current autobuild code. It doesn't install the scripts it seems. I will add by hand.

Quote
If the script starts when you start the camera, then you have "script autostart" enabled in the script menu.

I checked, thats off. So, it looks like 1) I over-reacted to script load, which is not run and 2) the OSX installer doesn't install the script subtree, which is very probably the right thing to do anyway.

-G

*

Offline reyalp

  • ******
  • 12796
Re: How to 'stop' a script running (or 'unload' it)
« Reply #3 on: 25 / December / 2010, 16:09:01 »
If you downloaded the "small" package, it doesn't include the scripts. I don't know anything about the OSX installer.  :-[

You are not the first one to be confused by this ;)

Note that default.bas is just an empty file. Loading it causes CHDK to use the built in default script.


Don't forget what the H stands for.


*

Offline zeno

  • *****
  • 889
Re: How to 'stop' a script running (or 'unload' it)
« Reply #4 on: 25 / December / 2010, 18:30:06 »
The OSX installer (SDMInst) will copy all the files if you ask it to (using the"Copy all files from ..." option) if they are all in the same directory tree as DISKBOOT.BIN. And if you used ACID to download the full build then the files will all be in the right place.

Dave (author of SDMInst and ACID)
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

 

Related Topics