Quote:var w2 = wnd.find(11, "剪映专业版", "Qt622QWindowIcon", also: o => o != w1);The code works.
Sorry, I just found that in the new version of CapCut, many controls are hidden. Use the link below to install version 4.8.0, which allows locating the export button.
https://capcut.cn.uptodown.com/windows/versions
I tested it with the code below, but the line e3.WaitFor(30, t => !t.IsInvisible); does not work
// script "capCut_T.cs"
//.
script.setup(trayIcon: true, sleepExit: true);
//..
var w1 = wnd.findOrRun("CapCut", "Qt622QWindowIcon", run: () => { run.it(folders.LocalAppData + @"CapCut\Apps\4.8.0.1818\CapCut.exe"/*, "--src1"*/); });
var e1 = w1.Elm["STATICTEXT", prop: "desc=HomePageDraftTitle:0322", flags: EFFlags.UIA].Find(10);
e1.Parent.MouseClick();
var w2 = wnd.find(11, "CapCut", "Qt622QWindowIcon", also: o => o != w1);
var e2 = w2.Elm["STATICTEXT", prop: "desc=MainWindowTitleBarExportBtn", flags: EFFlags.UIA].Find(6); //Export button in the upper-right corner of the main window
e2.WaitFor(30, t => !t.IsInvisible);
e2.WaitFor(30, t => !t.IsDisabled);
e2.MouseClick();
//10.s();
var w3 = wnd.find(1, "Export", "Qt622QWindowIcon");
var e3 = w3.Elm["STATICTEXT", prop: "desc=ExportOkBtn", flags: EFFlags.UIA].Find(6); //Export button in the lower-right corner of the export dialog
e3.WaitFor(30, t => !t.IsInvisible);
e3.WaitFor(30, t => !t.IsDisabled);
e3.MouseClick();