Wait; Pause or Sleep

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

Moderators: Gurus, Addon Administrators

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

Wait; Pause or Sleep

Post by MPG »

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
Triumph - Hold On: Music holds the secret, to know it can make you whole.
crap_inhuman
Posts: 933
Joined: Sat Jan 26, 2013 6:00 am
Location: Friedberg / Hessen / Germany
Contact:

Re: Wait; Pause or Sleep

Post by crap_inhuman »

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: 418
Joined: Tue May 13, 2008 11:22 pm

Re: Wait; Pause or Sleep

Post by MPG »

Awesome. Thanks.
TIA
MPG
Triumph - Hold On: Music holds the secret, to know it can make you whole.
Post Reply