Dryos Basic scripting

  • 64 Replies
  • 21842 Views
*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Dryos Basic scripting
« Reply #10 on: 14 / August / 2010, 09:07:55 »
Advertisements
It seems that Canon use asterisk(*) as dereference operator only:

  a=1
  b=&a
  *b=2
(a is now equal to 2)

Maybe Canon use another character (or set of characters, like trigraphs in C) for multiply operation (and something else for binary AND instead of '&').

*

Offline dvip

  • ****
  • 451
Re: Dryos Basic scripting
« Reply #11 on: 14 / August / 2010, 09:20:33 »
@reyalp, thanks for the info regarding eventproc to call those native functions.

*

Offline emlyn

  • **
  • 88
Re: Dryos Basic scripting
« Reply #12 on: 14 / August / 2010, 12:56:49 »
This looks very interesting, but unfortunately I have been unable to get it working on an IXUS 130 (SD 1400IS). The camera just behaves as if nothing is different, pressing 'set' just brings up the usual menu on the left of the screen.
It's possible that I did something wrong, but I suspect that this is yet another thing that Canon has tightened up on the 2010 cameras...

Re: Dryos Basic scripting
« Reply #13 on: 14 / August / 2010, 13:02:52 »
Do you have a pre-2010 camera you can try your procedure on ?

If Canon have disabled it, that is very mean, I do not understand their 'problem'.


*

Offline emlyn

  • **
  • 88
Re: Dryos Basic scripting
« Reply #14 on: 14 / August / 2010, 13:42:27 »
Do you have a pre-2010 camera you can try your procedure on ?
Unfortunately not at the moment (I may eventually get an old one to play around with CHDK if there is no progress on the recent ones).

Quote
If Canon have disabled it, that is very mean, I do not understand their 'problem'.
Yes, it is disappointing... hopefully something will be found eventually for these cameras.

*

Offline reyalp

  • ******
  • 10944
Re: Dryos Basic scripting
« Reply #15 on: 14 / August / 2010, 14:59:20 »
This looks very interesting, but unfortunately I have been unable to get it working on an IXUS 130 (SD 1400IS). The camera just behaves as if nothing is different, pressing 'set' just brings up the usual menu on the left of the screen.
It's possible that I did something wrong, but I suspect that this is yet another thing that Canon has tightened up on the 2010 cameras...
The ixus130 brings up a menu when you press set in play mode ? In most canon cameras I've used, SET when viewing a single image doesn't do anything. The extend.m is only run in play mode.

Perhaps it's another button, or combination of buttons ?
Don't forget what the H stands for.

*

Offline fe50

  • ******
  • 3075
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: Dryos Basic scripting
« Reply #16 on: 14 / August / 2010, 15:09:55 »
wow, great stuff !

"Hello world" in CBasic works on the SX10, but not on the SD870, also not on the SD400 since this fw don't know the LCDMsg_**** functions (no visible feedback on both cameras)...

*EDIT:
Hello world works also on the SD870 - color palette issue  >:(
« Last Edit: 15 / August / 2010, 15:51:36 by fe50 »

*

Offline emlyn

  • **
  • 88
Re: Dryos Basic scripting
« Reply #17 on: 14 / August / 2010, 16:38:04 »

The ixus130 brings up a menu when you press set in play mode ? In most canon cameras I've used, SET when viewing a single image doesn't do anything. The extend.m is only run in play mode.

Perhaps it's another button, or combination of buttons ?

In fact the button is labelled "FUNC. SET", it's the one in the centre of the "joypad". It brings up a menu with things like protect, tag as favourite, slide show, etc.

I've tried the other buttons too, and a few combinations, but still no luck.


*

Offline zeno

  • *****
  • 880
Re: Dryos Basic scripting
« Reply #18 on: 14 / August / 2010, 18:14:13 »
On my A570 (vxworks) the HelloWorld script does not work (because the LCDMsg_Create() etc functions aren't present). Note that the camera behaves normally, with no indication of an error. However, this script does work:
Code: [Select]
dim f,a
 
private sub Initialize()
  SystemEventInit()
  f=Fopen_Fut("A/dump.bin","w")
  Fwrite_Fut(&a, 4,1,f)
  Fclose_Fut(f)
end sub
It may be worth trying on other cameras that seem to ignore scripts.
A570, S100, Ixus 127
Author of ASSIST, STICK, WASP, ACID, SDMInst, LICKS, WICKS, MacBoot, UBDB, CFGEdit

*

Offline emlyn

  • **
  • 88
Re: Dryos Basic scripting
« Reply #19 on: 14 / August / 2010, 18:37:06 »
Code: [Select]
dim f,a
 
private sub Initialize()
  SystemEventInit()
  f=Fopen_Fut("A/dump.bin","w")
  Fwrite_Fut(&a, 4,1,f)
  Fclose_Fut(f)
end sub
It may be worth trying on other cameras that seem to ignore scripts.

I tried this script (and found a typo in my script.req file while checking things), but still no luck with the IXUS 130.

 

Related Topics