djehres:
--------------------------------------------------------------------------------
thanks.

When I set check the scripting support Check box I get this:

Microsoft VBScript runtime error
Line:2 Pos:1
Description:Object doesn’t support this property or method:
‘WScript.Arguments’


When I double click on the *.vbs file they work.

How do I get a Script Menu on the toolbar?


Which is easier to do VBScript or JScript (Java Script?) ?


thanks.
--------------------------------------------------------------------------------


Hi,
from the above message it seems, that WSH is working in your PSPad installation,
but there seems to be an error in your script source.

Within PSPad you can only use scripts written for it specifically, the menu
items in "Scripts" are created in the Init function of the script.
The reference for the supported functions can be found in the rtf file:
...\PSPad\Script\ReadMe.rtf

I don't use vbscript myself for PSPad scripting (but rather javascript), but the
usage is fairly similar.

You can have a look at a simple script I posted in some previous thread:

http://forum.pspad.com/read.php?2,48923,48931#msg-48931

There are also some simple scripts in the full PSPad installation - including
vbscript - in the respective subfolders
...\PSPad\Script\

(If you actually wanted to use standalone programs or runable scripts arguments
rather than PSPad-internal scripts, you can assign them in the Tools panel
(Ctrl+F2) in the Favourites (usually under the tab with "heart" icon).

hth,
   vbr

-- 
<http://forum.pspad.com/read.php?2,59352,59355>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem