10-31-2024, 07:53 PM
Can automate clicking "Copy video URL at current time" to get the current second. I don't know how to get time with better resolution.
print.clear();
var w1 = wnd.find(0, "*- Chordify - Google Chrome", "Chrome_WidgetWin_1");
w1.Activate(); 200.ms();
for (int i = 0; i < 100; i++) {
//perf.first();
var e1 = w1.Elm["web:GROUPING", "YouTube Video Player"].Find(1);
//e1.MouseClickR();
e1.PostClickR();
var e2 = w1.Elm["web:MENUITEM", "Copy video URL at current time"].Find(1);
clipboard.clear();
e2.Invoke();
var s = wait.until(1, () => clipboard.text);
//perf.nw();
print.it(s);
250.ms();
}