Trackbar variable - Forum

Forum Navigation
You need to log in to create posts and topics.

Trackbar variable

Hi,

I am attempting to have a trackbar that tracks the position of the track in the audio player (I am using the plugin ASPlayer)

As I load a file into the ASPlayer I obtain the audio tracks length so I can set the maximum value for the trackbar.

TrackBarSetMax "TrackBar2" "[TrackLength]"

Sadly this does not work using the variable I gain from ASPlayer but if I set the variable manually it works.

TrackBarSetMax "TrackBar2" "30000000"

I can see the variable TRACKLENGTH being populated in the debugger correctly.

Any help would be gratefully received - thank you.

Mark

 

 

 

Uploaded files:
  • You need to login to have access to uploads.

Hi,

I solved it.

I placed the TrackBarSetMax "TrackBar2" "[TrackLength]" in the play button and not in the load file.

Kind of makes sense. :)

 

Mark

Vadim and impactband4u have reacted to this post.
Vadimimpactband4u