Getting Access to Progress Bar (unskinned)

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey for Windows 4.

Moderators: Gurus, Addon Administrators

ceinj
Posts: 65
Joined: Sun Mar 22, 2009 4:36 pm

Getting Access to Progress Bar (unskinned)

Post by ceinj »

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.
Peke
Posts: 17794
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Getting Access to Progress Bar (unskinned)

Post by Peke »

Hi,
It is same as for skinned version using https://www.mediamonkey.com/wiki/index. ... ::Progress
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
ceinj
Posts: 65
Joined: Sun Mar 22, 2009 4:36 pm

Re: Getting Access to Progress Bar (unskinned)

Post by ceinj »

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?
Peke
Posts: 17794
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Getting Access to Progress Bar (unskinned)

Post by Peke »

Hi,
You can't get state of MMW Sync progress from Script. You can only watch Progress object from own created Progress Bars.
Best regards,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
Post Reply