Raduga (English)

User: Guest

Search

Please use the
Bug Report Form
if you think you found a software defect.

Use the Contact Form
to send a personal message to Wolfgang.

RSS Feed RSS Feed

Other boards:
Juke
QBrowser
Song Requester
SuperEdi

Perl addin doesn't work

Posted on: Raduga (English)

From Message

Alexandre

2004-08-02 14:10:44

Perl addin doesn't work

i tried the perlscript :

sub Player_Start {
$Console->WriteLine( "..." );
}

but any message appears in the console :|
The same VBScript works properly:

Sub Player_Start
Console.WriteLine "..."
end Sub

I use Raduga 3.8. Where is the problem ?

Alexandre

2004-08-02 17:48:51

Re: Perl addin doesn't work

Moreover, no perl script goes... i installed ActivePerl

Wolfgang Loch

2004-08-02 20:30:04

Re: Perl addin doesn't work

Please note that the Perl scripts must have the file name extension ".pls". I can send you an working example add-in.

Alexandre

2004-08-03 11:34:38

Re: Perl addin doesn't work

I saw in the help of Raduga :
Executable (.bat, .cmd, .exe, .js, [.pl], .vbs)

I modified the ".pl" in ".pls" (in the register also) but nothing changed...

Alexandre

2004-08-03 12:08:39

Re: Perl addin doesn't work

i'v add the pls extension to activeperl and it now works properly :) thank you, i'm going to finish my script

Doogy

2004-08-04 21:11:42

Re: Perl addin doesn't work

Hi, I have a problem with Wscript in perlscript (.pls)

This code :

sub Player_Start {
$Wsh = $Wscript->CreateObject("WScript.Shell");
}

return in raduga :

Can't call method "CreateObject" on an undefined value at (eval2) line2.

Wolfgang Loch

2004-08-04 22:14:10

Re: Perl addin doesn't work

try this:

use Win32::OLE;
$Wsh = Win32::OLE->new("WScript.Shell");

Post a reply to this message: