supplierdeeply

Remote control vs Scripting

  • 1 Replies
  • 517 Views
*

Offline neszt

  • ***
  • 174
Remote control vs Scripting
« on: 09 / June / 2013, 06:31:34 »
Advertisements
Hello!

I tried to handle CA-1 type remote to control messages in script, especially to do video restart. I started with the existing video script:

http://chdk.wikia.com/wiki/Continuous_Video_Scripts

and I modified to get video restarted with shoot_half button. It seems, that CHDK does not allow remote control in scripting. There is only an option to start the script (in the remote control settings) and that is works, but when the script is running I can not catch the remote control button presses. Is this a planned behavior?

Regards,
 Neszt

Re: Remote control vs Scripting
« Reply #1 on: 09 / June / 2013, 10:58:54 »
It seems, that CHDK does not allow remote control in scripting.
CHDK most definitely does allow USB Remote control in scripting.
link > http://chdk.wikia.com/wiki/USB_Remote_V2#Scripting_Interface

Quote
but when the script is running I can not catch the remote control button presses.
You mentioned that you are using a CA-1.  That device only produces short pulses.  CHDK USB code will detect thost while a script is running but you need to handle them a little bit differently in the code. 

Please attach a copy of your script and post it here and I can give you some help.
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics