enter_alt for ubasic - General Discussion and Assistance - CHDK Forum

enter_alt for ubasic

  • 4 Replies
  • 2462 Views
enter_alt for ubasic
« on: 14 / July / 2012, 07:37:34 »
Advertisements
hi all,
during a script execution I need to suspend chdk for a while so i use the function
exit_alt 0 in uBasic
i saw there exist "enter_alt" function for lua but nor ubasic... why this? isnt it possibile
somehow to return in alt mode in a ubasic script?

I need it because otherwise any time I click my remote button in play mode and alt disabled,
on the screen I have the slideshow of picture taken and I dont want it as it clears my console output....

thanks all

*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: enter_alt for ubasic
« Reply #1 on: 14 / July / 2012, 08:59:14 »
This command is not quite useful for a 'normal' script. It's more a experimental function in conjunction with a PTP connection. That's also the reason why it exists only as a Lua command.

It's not possible leave and re-enter the ALT mode via a running script.

msl
CHDK-DE:  CHDK-DE links

Re: enter_alt for ubasic
« Reply #2 on: 14 / July / 2012, 09:47:59 »
I need it because otherwise any time I click my remote button in play mode and alt disabled,
on the screen I have the slideshow of picture taken and I dont want it as it clears my console output....
A less complex approach to solve your problem assuming that you have a script running is to sit in a loop and issue a

Code: [Select]
redraw_console
every half second or so.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: enter_alt for ubasic
« Reply #3 on: 14 / July / 2012, 10:29:36 »
Quote
redraw_console

thx, that is a good workaround
by the way I magine is not possible to disable the feature that in playingMode, alt disabled, a remote button press triggers the displaying of previous pictures taken...isn't it?


Re: enter_alt for ubasic
« Reply #4 on: 14 / July / 2012, 10:36:36 »
by the way I magine is not possible to disable the feature that in playingMode, alt disabled, a remote button press triggers the displaying of previous pictures taken...isn't it?
No.

But I'm laughing here because at the time I was redoing the USB remote code,  I was asked to add that "feature" because it had been in the original USB remote code and was apparently very important to people with multi-camera setups.

Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal