Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting timestamp
#3
Thank you so much!

var w1 = wnd.find(0, "*- Chordify - Google Chrome", "Chrome_WidgetWin_1");
w1.Activate(); 200.ms();

var elements = w1.Elm["web:GROUPING", prop: "@data-i=?*"].FindAll()[1..];

for (int i = 0; i < elements.Count(); i += 4)
{
var e = elements[i];

e.PostClick();

0.3.s();

keys.send("space");

var e1 = w1.Elm["web:GROUPING", "YouTube Video Player"].Find(1);
e1.PostClickR();
var e2 = w1.Elm["web:MENUITEM", "Copy video URL at current time"].Find(1);
clipboard.clear();
e2.Invoke();
var s = wait.forCondition(1, () => clipboard.text);
250.ms();

print.it(s);
}

This is working perfectly!

Jscript :

const video = document.querySelector("#movie_player > div.html5-video-container > video");

// Set focus on the video element
video.focus();

// Get the current playback time
const currentTime = video.currentTime;
console.log("Current playback time:", currentTime); This JavaScript will read the current time.

Would you please help me integrate this two code into one. I don’t know if LA is able to run JavaScript code directly! Thank you so much


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: 3 Guest(s)