Wait; Pause or Sleep

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

Moderator: Gurus

MPG
Posts: 211
Joined: Tue May 13, 2008 11:22 pm

Wait; Pause or Sleep

Post by MPG » Fri Sep 12, 2014 6:18 pm

Hi,
I developed a script that does a spell check on the track using MS Word which has been posted to the Addon Forum. I just upgraded to Office 2013, and now Word is crashing because the call to do the spell check is occurring before Word has finished loading. So, I had to put in the dreaded For loop that does nothing.

For intCnt = 1 to 100000
inctCnt = intCnt +1
Next

I couldn't figure out a way to invoke the following code
Application.Wait(Now + #00:00:03#)

Is there a nice way to delay processing?

MPG
TIA
MPG
Totals:
Artists: 28,006
Albums: 66,333
Tracks: 493,635
Length: (h:mm:ss) 34,562:16:34
File size: 3.29TB

crap_inhuman
Posts: 682
Joined: Sat Jan 26, 2013 6:00 am
Location: Friedberg / Hessen / Germany
Contact:

Re: Wait; Pause or Sleep

Post by crap_inhuman » Sat Sep 13, 2014 10:26 am

MPG wrote:Hi,
I developed a script that does a spell check on the track using MS Word which has been posted to the Addon Forum. I just upgraded to Office 2013, and now Word is crashing because the call to do the spell check is occurring before Word has finished loading. So, I had to put in the dreaded For loop that does nothing.

For intCnt = 1 to 100000
inctCnt = intCnt +1
Next

I couldn't figure out a way to invoke the following code
Application.Wait(Now + #00:00:03#)

Is there a nice way to delay processing?

MPG
Just use a mm function :

SDB.Tools.Sleep(1000) = Wait 1 sec
Metal up your ass !
-----------------------------------------------
I added my first 2 videos on youtube. The language is german.

Discogs Autorisierung: https://www.youtube.com/watch?v=oryxKKtnEnc
Discogs Tagger Bedienung: https://www.youtube.com/watch?v=85Wk-5rd-W0

MPG
Posts: 211
Joined: Tue May 13, 2008 11:22 pm

Re: Wait; Pause or Sleep

Post by MPG » Sat Sep 13, 2014 10:58 am

Awesome. Thanks.
TIA
MPG
Totals:
Artists: 28,006
Albums: 66,333
Tracks: 493,635
Length: (h:mm:ss) 34,562:16:34
File size: 3.29TB

Post Reply