WSHHelper link and questions (attn: Steegy & anyone)

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

imd1b4u
Posts: 30
Joined: Tue Oct 02, 2007 10:25 pm

WSHHelper link and questions (attn: Steegy & anyone)

Post by imd1b4u »

On the Scripting Tips & Tricks wiki page page you (Steegy) mention "WSHHelper".

(EDIT: Well, you used to. I removed that paragraph so it doesn't confuse anyone else. It should be easy for you to revert my edit if you want to add it back. If so, please fix the link.)

#1) The link is broken.
#2) A search of Google for it turns up nothing, except for that wiki page and a forum message by Peke saying he uses it.
#3) Google has 53 links for "WSHelper". It appears to be some sort of object. WSHHelper apparently was an object, too.

By "WSHHelper" did you mean WSHelper?
If not, does anyone know if WSHelper is worth using?
Does anyone know where to get WSHHelper?

BTW, the answers are not obvious to me. One page Google returns says that WSHelper is a component of Microsoft Vista (too new to be WSHHelper I think), but there is also a WSHelper.py, which is a Python module released under the GPL, which would probably have much more to do with Linux than Windows. There is even a Java WSHelper! :-?

EDIT: And I thought I was confused before!
It turns out that WSHelper is "Windows Sockets Helper", developed by MIT when Windows 95 came out, but not included as part of Windows until Windows Vista!!! This could still be WSHHelper, because the debugger it is supposed to work with debugs local and remote processes, so it uses Windows Sockets. My head is spinning! And this was supposed to make writing scripts easier?!?!

Of course, none of the documentation (other than the wiki page) even mentions WSHHelper or WSHelper! That's MediaMonkeyScripting.chm, Microsoft's Scripting Help or Sysinternal's DebugView's help! I am beginning to think it is not worth worrying about, and that goes for MM scripting in general. What a mess!!!
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Post by rovingcowboy »

WSHHelper = Windows Scripting Host Helper

it is what is used to run vbs scripts.

8)
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
imd1b4u
Posts: 30
Joined: Tue Oct 02, 2007 10:25 pm

Post by imd1b4u »

rovingcowboy wrote:WSHHelper = Windows Scripting Host Helper

it is what is used to run vbs scripts.

8)
Normally WScript.exe or CScript.exe are what Microsoft provides to run vbs scripts, but of course other software (such as MM) can, too. So is WSHHelper another alternative for running scripts, kind of like "WScript.exe //D //X MyScript.vbs"? (The "//D //X" enables debugging.) If so, it won't help me at all, because it won't know anything about the MM API. :-(
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

I added the WSHHelper tip because it was mentioned by a trusted source (Peke) as tip on the forum here. Since Peke's site went down, the link doesn't work anymore (apparently).
Maybe Peke can add the tip back if he still has a working link to WSHHelper (which may be a program created by himself).
What WSHHelper does is enabling scripters to easily send some type Windows API Debug messages, that can be read e.g. by DebugView.
This is certainly not the same as the scripting host that "enables debugging" (with the command line parameters) that means that you can e.g. execute the script line by line, stop it, read variable values, ... in a program like VbsEdit (hint hint).
A lot of script programmers use MsgBox'es to debug programs (e.g. get value of a variable), but by using the debug messages with DebugView, you can get the same information like the stuff you show with MsgBox, but it doesn't pop up a message window, plus you get it in a history list.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Peke
Posts: 17486
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Post by Peke »

I've sent you mail, hope we can put some use of it.

This is strange all WSHHelper reference from internet vanished :)

Only thing I remember is that I needed to use it back
in 2004 when I worked on some scripting projects and
that it came along with license for Primal Script and
some other programs that I needed for work.
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
Peke
Posts: 17486
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Post by Peke »

Add-On for scripters:
There are OutputDebugString and OutputDebugStringMM methods in SDBTools object.

Code: Select all

SDB.Tools.OutputDebugString("Test1")
SDB.Tools.OutputDebugStringMM("Test2")
This should make debugging much easier.
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
imd1b4u
Posts: 30
Joined: Tue Oct 02, 2007 10:25 pm

Post by imd1b4u »

Peke wrote:Add-On for scripters:
There are OutputDebugString and OutputDebugStringMM methods in SDBTools object..
Where? In MM2 or MM3 or some plug-in?

I just checked the IDL file I generated from MM 2.5.5.998 and they don't seem to be there. That still seems to be the latest version on MM's download site. :-?
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

And can you be a little more specific about what they do? Where does the message appear and what is the difference between the two?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post by Steegy »

Ok, so the SDB.Tools.OutputDebugString("Test1") and SDB.Tools.OutputDebugStringMM("Test1") methods make WSHHelper needless on MM3.

The second one only outputs messages to the debug API when MM itself is in debugging mode (beta/debug release).
The debug message can be "trapped" using the DebugView program, and it's working in the same way as MM sends its debug messages.
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

Ok, cheers for that.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Post Reply