Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting timestamp
#2
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.

Code:
Copy      Help
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();
}


Messages In This Thread
Getting timestamp - by birdywen - 10-31-2024, 06:56 PM
RE: Getting timestamp - by Gintaras - 10-31-2024, 07:53 PM
RE: Getting timestamp - by birdywen - 11-01-2024, 07:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)