StArL0rd84 wrote:Sorry for not responding sooner, but my plate is pretty full at the moment
This is my bar code:
(Can't easily package the new skin because it is integrated into a huge suite)
Code: Select all
[pBarStartBg]
Meter=Image
ImageName=#@#Images\BarStart.png
X=75
Y=6r
AntiAlias=1
ImageTint=#BarBgColor#,#BarBgTrans#
DynamicVariables=1
Group=BarBgTrans1
[pBarStart]
Meter=Image
ImageName=#@#Images\BarStart.png
X=r
Y=r
AntiAlias=1
ImageTint=#BarColor#,#BarTrans#
Group=Controls&Info | BarTrans
[pBar]
Meter=Bar
MeasureName=mProgress
X=3r
Y=r
W=146
H=6
BarColor=#BarColor#,#BarTrans#
SolidColor=#BarBgColor#,#BarBgTrans#
BarOrientation=Horizontal
LeftMouseUpAction=[!CommandMeasure mProgress "SetPosition $MouseX:%$"]
Group=Controls&Info | BarTrans | BarBgTrans2
[pBarEnd]
Meter=Image
ImageName=#@#Images\BarStart.png
ImageFlip=Horizontal
X=(([pBar:X])+([pBar:W]/2))
Y=r
AntiAlias=1
ImageTint=#BarBgColor#,#BarBgTrans#
Group=Controls&Info | BarBgTrans1
[pBarKnob]
Meter=Image
ImageName=#@#Images\BarStart.png
ImageTint=#BarColor#,#BarTrans#
DynamicVariables=1
ImageFlip=Horizontal
X=(([pBar:W]*(([mProgress:%]/100)))+([pBarStart:X]+3))
Y=r
AntiAlias=1
Group=Controls&Info | BarTrans
And if i just do something like [!CommandMeasure mProgress "SetPosition
77"]
It still borks
Screenshot of SoundCloud:
SoundCloudScr.png
I am using the 0.4 plugin and extension:
fileversion.png
SoundCloudUpd.png
Sorry man I was gone for the last few days dealing with some family issues.
I have tested the command extensively on my end and it seems to be working fine no matter what I throw at it. It could be that your skin is somehow using an edge case that youtube handles but you said even a manual normal setPosition failed (Just double checking you are doing everything on a scale of 0 - 100 right?). Could you try inputting the following code into your browser's developer console (Normally accessed by hitting F12)
Code: Select all
progress = function(progress)
{
var loc = document.getElementsByClassName("playbackTimeline__progressWrapper")[0].getBoundingClientRect();
progress *= loc.width;
var a = document.getElementsByClassName("playbackTimeline__progressWrapper")[0];
var e = document.createEvent('MouseEvents');
e.initMouseEvent('mousedown', true, true, window, 1,
screenX + loc.left + progress, screenY + loc.top + loc.height / 2,
loc.left + progress, loc.top + loc.height / 2,
false, false, false, false, 0, null);
a.dispatchEvent(e);
e.initMouseEvent('mouseup', true, true, window, 1,
screenX + loc.left + progress, screenY + loc.top + loc.height / 2,
loc.left + progress, loc.top + loc.height / 2,
false, false, false, false, 0, null);
a.dispatchEvent(e);
};
progress(0.5);
That should if it works right set the song to 50% through the song. If that does not work tell me the output of document.getElementsByClassName("playbackTimeline__progressWrapper")[0].getBoundingClientRect()