I have a one-line script to disable the USB Remote function...
@title AAUSB2PC
@chdk_version 1.3
set_config_value(121,0)
I get an Unk Stmt error, which I guess is unknown statement. I have no clue how such a simple script can fail to run. Even if the index number of the config value is wrong (I'm not sure 121 is for USB Remote), the script should run, correct?
I even tried replacing the "set_config" line with "sleep 250". Still fails. Adding "end" makes no difference.
There's gotta be a fundamental problem somewhere.
The script is saved as AAUSB2PC.bas.
I use Windows Notebook to create it, and save it with UTF-8 encoding, as the default ANSI encoding creates a parse error when I try to run it.
I am running CHDK 1.4. Can anyone point me in the right direction?
Thanks!
UPDATE:
I took one of the scripts that come with CHDK, hdr.bas, and ran it. It runs fine.
Then I opened it in Notepad, and saved it with a new name, using UTF-8 encoding. This new script fails with the same error.
I tried all 4 encoding options available in Notepad, they all fail.
I have no options left. Has anyone else had this happen?
Vinz