I am not all that experienced with VBScript, so sorry if this is a dumb question.
I have a DX script that accesses the WScript COM object directly (if "directly" is the right word) instead of through the CreateObject function. When I try to run the script, DesktopX gives me the error, "Object required: wscript". Here's an example of what I'm doing:
If wscript.arguments.count=0 Then msgbox "Drop files on me to extract the icons."
I've seen other users use WScript like that (while I was searching the forums to solve my problem

), but apparently it isn't working for me.
Ultimately, I am trying to extract an icon from an EXE/DLL/any PE file using a script I found from http://gilpin.us/IconSiphon/. I copied and pasted the code from the .vbs file into my object's script editor, but I get that "object required" error. Possibly copying/pasting is the problem? Do I have to run the script in some other way, like right from the file? After looking at MSDN for WScript, it seems like it has to do with the file itself.
Any ideas why WScript isn't working would be appreciated.
Thanks,
Electo