supplierdeeply

macro mode

  • 4 Replies
  • 704 Views
macro mode
« on: 02 / November / 2014, 03:40:14 »
Advertisements
HI Need some help  :) . I have permanent damage to the macro and MF buttons. (broken ribbon cable) . Now i try to write a script to activate manually within chdk main menu . What command i need prop_id 11 ore click "macro"? Where can i find a sample script ??  thank aty   PowerShot S3 IS

Re: macro mode
« Reply #1 on: 02 / November / 2014, 05:34:20 »
Try this:
Code: [Select]
--[[
Focus mode x PowerShot S3 IS
-----------------------------
@title Focus mode

@param     m Focus mode
  @default m 1
  @values  m Auto       Macro      MF         SuperMacro
]]
props=require("propcase")

focus_table    = { 0, 1, 4, 5 }
f = focus_table[m+1]

--if (m==2) then set_prop(12, 1) else set_prop(12, 0) sleep(100) end

set_prop(11, f)                                 -- set Focus mode

sleep(1000)
exit_alt()

Maybe you have to comment out (delete "--") where it says: "--if (m==2) then set ..."
Let me know
 ;)




Re: macro mode
« Reply #2 on: 02 / November / 2014, 10:31:29 »
Thank you fabri22 for the script and quick reply. I try both ways ...not working.  Not put the camera in macro mode . i keep searching :)

Re: macro mode
« Reply #3 on: 02 / November / 2014, 11:19:37 »
Thank you fabri22 for the script and quick reply. I try both ways ...not working.  Not put the camera in macro mode . i keep searching :)

Try this

Code: [Select]
--[[
Focus mode x PowerShot S3 IS
-----------------------------
@title Focus mode

@param     m Focus mode
  @default m 1
  @values  m Auto       Macro      MF         SuperMacro
]]
props=require("propcase")

focus_table    = { 0, 1, 4, 5 }
f = focus_table[m+1]

--if (m==2) then set_prop(props.FOCUS_MODE, 1) else set_prop(props.FOCUS_MODE, 0) sleep(100) end

set_prop(props.REAL_FOCUS_MODE, f)             -- set Focus mode

sleep(1000)
exit_alt()

Same trick as above commenting out the "--if ..."
 ;)


Re: macro mode
« Reply #4 on: 02 / November / 2014, 14:47:50 »
 :D  :D  :D   Thank's again ..  it's OK..    Next i need to experiment to make it permanent until i turn it off.

 

Related Topics