Getting Access to Progress Bar (unskinned)

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Getting Access to Progress Bar (unskinned)

Re: Getting Access to Progress Bar (unskinned)

by Peke » Mon Sep 09, 2019 7:57 pm

Hi,
You can't get state of MMW Sync progress from Script. You can only watch Progress object from own created Progress Bars.

Re: Getting Access to Progress Bar (unskinned)

by ceinj » Mon Sep 09, 2019 4:50 pm

Are you sure? I think this is for setting up your own progress bar in a script but it does not return MM's sync progress.

I went back and modified my script as follows (a snippet):

Case "STA" 'Get Status & Progress Message
Dim ProgressBar
Dim ProgressMsg
Dim ProgressTxt
On Error Resume Next
ProgressMsg = SDB.Device.GetSyncProgress(hand)
If ProgressMsg <> "" Then
ProgressMsg = "(" & Fix(ProgressMsg * 100) & "%)"
End If
... ProgressMsg always returns a value like "(#%)" ...
Set ProgressBar = SDB.Progress
ProgressTxt = ProgressBar.Text
ProgressTxt = Err.Number & " - " & ProgressTxt
... Err.Number is always 0 and ProcessTxt is always blank ...


I tried this script on but an unskinned version of MM and with the Pulse skin with the same results.

Any suggestions?

Re: Getting Access to Progress Bar (unskinned)

by Peke » Mon Sep 09, 2019 2:23 pm

Hi,
It is same as for skinned version using https://www.mediamonkey.com/wiki/index. ... ::Progress

Getting Access to Progress Bar (unskinned)

by ceinj » Mon Sep 09, 2019 11:55 am

I can't find a scripting call that allows me to get the progress bar (gives description and percentage of copying done). Is there such a thing? Can someone tell me how this can be done with the unskinned version?

I'm using VBScript.

Top