View Single Post
Old 01-09-2019, 10:11 AM   #5
Eliseat
Human being with feelings
 
Eliseat's Avatar
 
Join Date: Mar 2018
Location: Cologne
Posts: 1,362
Default

Code:
function click_SAVE()
	local input = vlc.object.input()
	if input then
		local curtime=vlc.var.get(input, "time")
		local curtime=math.floor(curtime/1000)
		local curtime=curtime/1000
		local hours = math.floor(curtime/3600)
		local minutes = math.floor((curtime%3600)/60)
		local seconds = math.floor(curtime%60)
		number = 1
		if number % 2 == 0
          then
              local timeString = string.format("%02d:%02d:%02d-",hours,minutes,seconds)
          else
              local timeString = string.format("%02d:%02d:%02d,",hours,minutes,seconds)
        end
        number = number + 1
		w2:set_text(timeString)
		save_to_clipboard(timeString)
	end
end
I tried this but it doesn't copy anything into the clipboard.
Eliseat is offline   Reply With Quote