Macro Required for Edit and OK detail View Sketch

Hieee All,

I need macro for Selecting the Edit sketch option for Detail View and then Select the OK (Please refer picture)

Thank You....

SolidworksApi/macros