Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Submenu navigation and triggering
#1
Hello,

i need help with scripting right click menu navigation in Davinci Resolve. In previous version of resolve something like this worked for me:
 
Code:
Copy      Help
POINT _m;
xm _m
rig
int w1=wait(15 WV win("Resolve" "Qt5152QWindowPopupDropShadowSaveBits"))
err
    out "w1 not found"
    end
out "w1 = %i" w1
Acc a.Find(w1 "MENUITEM" "Groups" "" 0x1000 0)
err
    clo w1
    out "Groups not found"
    end
a.DoDefaultAction
Acc b.Find(w1 "MENUITEM" "Maniek 3" "" 0x1000 0)
err
    out "Maniek 3 not found"
    clo w1
    end
b.DoDefaultAction
Acc c.Find(w1 "MENUITEM" "Assign to Group" "" 0x1000 0)
err
    out "Assign to group not found"
    clo w1
    end
c.DoDefaultAction
clo w1
mou _m.x _m.y

and here is what I would achieve:

[Image: HYz5WeR.jpg]

After I updated Resolve to new version it seems Acc.DoDefaultAction wouldn't navigate to submenu as I get error there. Adding delays also doesn't solve the problem. Is there any other solution to navigate to submenu?

I just found a workaround - I replaced Acc.DoDefaultAction with Acc.Mouse(1) and it works but it's not as fast as it was earlier. If anyone has a better solution for this I'll be happy to try it.
#2
To navigate menus often the best way is the keyboard. Use Acc only when it is not possible.

To make Acc.Mouse or keys faster, insert this before:

spe 10

Default is spe 100. Then Acc.Mouse waits 100 ms. With spe 10 it waits 10 ms.

To see underlined letters in menu, invoke the menu with the Apps/Menu key or Shift+F10.
#3
Thanks Gintaras spe 10 broke the script but 50 did work and is noticeably faster. Thank You. Would this kind of scripting be easier for me with LA? I do know C#, didn't use it for a decade though...
#4
In LA this kind of scripting is very similar.


Forum Jump:


Users browsing this thread: 1 Guest(s)