close

My last stupid question of the week...

Anyone know the syntax to set the selectionstart for a mediaplayer object in
a userform please? I thought MP.selectionstart = 300 would start it 300
seconds in but apparently not. I'm using WMP 6 btw for various obscure
reasons 8-)

Many thanks in advance

tp
I am sure I will be corrected by smarter people, but I don't believe
selectionstart is an option for mediaplayer objects. SelectionStart is a
textbox control that allows you to select portions of entries into the
textbox.

When waiting 300 seconds, do you have users looking at something else on the
userform? or is it on a worksheet? You could use the application.wait
function to time the opening of the userform with the WP control on it. I
can't seem to find anything to have the player wait to play.
quot;teepeequot; wrote:

gt; My last stupid question of the week...
gt;
gt; Anyone know the syntax to set the selectionstart for a mediaplayer object in
gt; a userform please? I thought MP.selectionstart = 300 would start it 300
gt; seconds in but apparently not. I'm using WMP 6 btw for various obscure
gt; reasons 8-)
gt;
gt; Many thanks in advance
gt;
gt; tp
gt;
gt;
gt;


quot;JNWquot; gt; wrote

gt;I am sure I will be corrected by smarter people, but I don't believe
gt; selectionstart is an option for mediaplayer objects. SelectionStart is a
gt; textbox control that allows you to select portions of entries into the
gt; textbox.

I've done this before, s oI know it can be done, but I didn't keep the
sheet, rather stupidly. It needed a command inserting in the module that
summoned the userform iirc
Thanks for the heads up. I'm learning new things everyday.

So after some searching and playing I came up with the following:
WP.Controls.currentPosition = 300

Instead of selectionStart it sets teh current position of the player in the
song. The number is still in seconds. I had this in a userform_initialize
event but could put it other places as well.

Hope that works

quot;teepeequot; wrote:

gt;
gt; quot;JNWquot; gt; wrote
gt;
gt; gt;I am sure I will be corrected by smarter people, but I don't believe
gt; gt; selectionstart is an option for mediaplayer objects. SelectionStart is a
gt; gt; textbox control that allows you to select portions of entries into the
gt; gt; textbox.
gt;
gt; I've done this before, s oI know it can be done, but I didn't keep the
gt; sheet, rather stupidly. It needed a command inserting in the module that
gt; summoned the userform iirc
gt;
gt;
gt;

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()