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.


Messages In This Thread
Submenu navigation and triggering - by Syrzyk - 01-12-2023, 10:20 AM
RE: Submenu navigation and triggering - by Syrzyk - 01-12-2023, 08:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)