Search found 4647 matches
- Thu Oct 20, 2016 8:15 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Failure of WshShellExec.StdOut.ReadAll in MM
- Replies: 18
- Views: 14235
Re: Failure of WshShellExec.StdOut.ReadAll in MM
The only thing left that I can suggest is creating a fresh portable install of MM to see if it does the same. "When I take that code out of the SUB and give it to cscript.exe or wscript.exe, I get the same." suggest you were right in suggesting this is not down to MM. Or does cscript.exe or wscript...
- Thu Oct 20, 2016 5:29 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Failure of WshShellExec.StdOut.ReadAll in MM
- Replies: 18
- Views: 14235
Re: Failure of WshShellExec.StdOut.ReadAll in MM
Thanks. With some necessary adjustment: SUB CJtest DIM strCommand, WshShell, WshShellExec, strOutput Const WshFinished = 1 Const WshFailed = 2 strCommand = "ping.exe 127.0.0.1" Set WshShell = CreateObject("WScript.Shell") Set WshShellExec = WshShell.Exec(strCommand) WHILE WshShellExec.Status = 0 WEN...
- Thu Oct 20, 2016 12:39 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Failure of WshShellExec.StdOut.ReadAll in MM
- Replies: 18
- Views: 14235
Re: Failure of WshShellExec.StdOut.ReadAll in MM
I executed mine from the MM script menu, same as yours but I don't have a keyboard shortcut assigned. Thanks. Here with key assignment removed, the problem remains. Likewise with ScriptType changed to 0. I'm running Windows 10 Pro 64 bit. It could possibly be something in the wscript.exe version, f...
- Thu Oct 20, 2016 12:31 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Method to terminate script?
- Replies: 8
- Views: 8387
Re: Method to terminate script?
I have found a work around that uses Eyal's method with error handling to avoid showing the error boxes. Just add an extra sub that runs before your main sub like so: ... Have AllowEarlyExit as the trigger and when MainSub causes an error it will just skip back to AllowEarlyExit and continue on to ...
- Thu Oct 20, 2016 5:08 am
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Method to terminate script?
- Replies: 8
- Views: 8387
Re: Method to terminate script?
I can't find a way to abrubtly quit, but perhaps you could use a global variable that is set to True when you want to quit. Then have your other subroutines check that variable at key intervals and if it is set to True then Exit Sub. That's the litter I already have and am seeking to eliminate. Tha...
- Thu Oct 20, 2016 5:07 am
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Method to terminate script?
- Replies: 8
- Views: 8387
Re: Method to terminate script?
There's the STOP statement but it only works in WScript, not VBscript. I think the only way to do it is to voluntarily generate an error Err.Raise <Number> or x = 10 / 0 It's convenient for debugging but not suitable for public release... Thanks. Trying it http://i.imgur.com/9o87Iw9.png (there's no...
- Thu Oct 20, 2016 4:58 am
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Failure of WshShellExec.StdOut.ReadAll in MM
- Replies: 18
- Views: 14235
Re: Failure of WshShellExec.StdOut.ReadAll in MM
I just tried your code and it worked perfectly on my install. Wow! Good to know. Thanks. Maybe you could try MsgBox TypeName(strOutput) to check that the value being returned is a string. If it returns something other than a string then it could suggest where to look next. It says "String". Also, d...
- Wed Oct 19, 2016 6:38 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Failure of WshShellExec.StdOut.ReadAll in MM
- Replies: 18
- Views: 14235
Re: Failure of WshShellExec.StdOut.ReadAll in MM
It isn't executed. The status is 1 - as expected. The .Exec is succeeding. The fail is of WshShellExec.StdOut.ReadAll.
OP clarified.
OP clarified.
- Wed Oct 19, 2016 5:35 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Failure of WshShellExec.StdOut.ReadAll in MM
- Replies: 18
- Views: 14235
Failure of WshShellExec.StdOut.ReadAll in MM
In cscript.exe and wscript.exe it works - the MsgBox shows command output. In MM, the MsgBox shows nothing. EDIT: In both cases, the final status is WshFinished, so the fail is in WshShellExec.StdOut.ReadAll . Does MM perhaps prang StdOut? EXIT: With slow ping 127.0.0.1 replaced by fast cmd /c dir t...
- Fri Oct 14, 2016 10:21 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: 1839 Workaround for incredibly slow SDBSongList.Item()?
- Replies: 0
- Views: 4786
1839 Workaround for incredibly slow SDBSongList.Item()?
Anyone know a faster way of finding the total duration of an SDBSongList (e.g. playlist) than loop around: dur = dur + SDBplaylistobject.Tracks.Item(i).SongLength / 1000 '' ms per s I'm finding SDBSongList.Item() taks about 15ms on a 150-track list but this soars to ~200ms with around 5000 tracks. (...
- Fri Oct 14, 2016 5:03 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Script.ini - some shortcut keys fail.
- Replies: 0
- Views: 4748
Script.ini - some shortcut keys fail.
Any idea why on my Script.ini entry
and
and
fail to fire the script, but
succeeds?
These are non-globals. I'm pressing them in the MM app.
No other program is using them globally, to my knowledge.
Code: Select all
Shortcut=Ctrl+Shift+1
Code: Select all
Shortcut=Ctrl+Shift+2
Code: Select all
Shortcut=Ctrl+0
Code: Select all
Shortcut=Ctrl+Shift+9
These are non-globals. I'm pressing them in the MM app.
No other program is using them globally, to my knowledge.
- Fri Oct 14, 2016 4:51 pm
- Forum: MediaMonkey 4 Addons developer forum
- Topic: Method to terminate script?
- Replies: 8
- Views: 8387
Method to terminate script?
Is there a method call that will exit my script?
Like VBscript EXIT SUB but exiting the script rather than just the sub.
Like VBscript EXIT SUB but exiting the script rather than just the sub.
- Fri Oct 14, 2016 8:56 am
- Forum: Need Help? (mmw)
- Topic: Where has the title bar gone?
- Replies: 23
- Views: 5789
Re: Where has the title bar gone?
> I have a menu that is activated by clicking the middle mouse button anywhere in that program's title bar. On What OS? What menu, the standard restore, max, min., etc. ? Do you have a literal middle button? That's my quote of terrypin You could try it on the MM icon that in Win 7 MM is on the titl...
- Fri Oct 14, 2016 7:08 am
- Forum: Need Help? (mmw)
- Topic: Where has the title bar gone?
- Replies: 23
- Views: 5789
Re: Where has the title bar gone?
> I have a menu that is activated by clicking the middle mouse button anywhere in that program's title bar. You could try it on the MM icon that in Win 7 MM is on the title bar and which I see on the Win 10 MM is on the menu bar, left end. http://i.imgur.com/EvMw99F.png Also perhaps post a screensho...
- Fri Oct 14, 2016 5:10 am
- Forum: Need Help? (mmw)
- Topic: Where has the title bar gone?
- Replies: 23
- Views: 5789
Re: Where has the title bar gone?
It does here.terrypin wrote:Why does MediaMonkey 4.1.14.1813 no longer have a title bar?
A new install on Win 7:
Skinned

Non-skinned
