Welcome Guest.   Make a donation to an author on the site August 30, 2014, 01:20:58 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: FScript 1.19 Issues  (Read 3901 times)
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,806



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: September 18, 2009, 06:12:24 AM »

I've been updating my plugins to the latest version of FScript (as requested in this thread).

First plugin went fine after I figured out what was going on.

So I headed onto #2 and it hasn't gone as smoothly as I'd hoped  Sad

Plugin #2 uses vbScript, and worked fine in the previous versions of FScript that I was using. But after upgrading to 1.19 I think that FScript is not calling the onProcessTrigger function.

So I decided to start at the beginning, and I've converted the original javaScript examples to vbScript. I've attached them, if anybody else wants to check.

Note: I've left the signature for onProcessTrigger as was supplied with the original sample, but I've tried the other signature that works with my javaScript plugin without success.

* vbsFScriptSample.zip (149.41 KB - downloaded 167 times.)
Logged

Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,806



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: September 18, 2009, 10:18:09 AM »

ecaradec has just got back to me about this onProcessTrigger issue.

He suggested that onProcessTriggerV2 be tried: and it works!

OK: Problem not solved but easily worked around. I have not tested the other languages, so I'm not sure if they affected in the same way; but if you are using something apart from javaScript and onProcessTrigger is not being called - Try onProcessTriggerV2

Thanks ecaradec  Kiss
Logged

ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: September 19, 2009, 04:03:49 AM »

Hello Perry,

I found the source of your problem, the issue is that the vbscript needs to declare every parameter used. You have to use the full function declaration even if you don't use every parameter. I probably added a parameter in the last version of fscript causing the vbscript call to fail now.  The full signature is :

function onProcessTrigger(path, caption, groupname, pluginid,thispluginid,score,entrytype,voidp)

The issue was very easy as the script engine returned an error code with exactly the correct issue. I really need to add some error messages   tongue
« Last Edit: September 19, 2009, 12:34:47 PM by ecaradec » Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
mouser
First Author
Administrator
*****
Posts: 33,286



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: September 19, 2009, 01:00:57 PM »

now we have the real solution to all of the compatibility problems -- it is that all plugins need to upgrade to onProcessTriggerV2.
Logged
ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: September 20, 2009, 02:50:58 AM »

no, onProcessTrigger works, the issue is the number of parameters. Fscript pass all parameters to the scripting host. That's not a problem with javascript that is very forgivable about the number of parameters given. VBScript, ruby, etc... expect the exact correct number of parameters.
With recent FARR defining function onProcessTrigger(path, caption, groupname, pluginid,thispluginid,score,entrytype,voidp) will work all the time. Depending of the features of the language we could get full compatibility by defining a function that allow for extra parameters, or overload the function with one of the same name with a different set of parameters.
Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,167



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: September 20, 2009, 06:46:18 AM »

I'm beginning to understand what the  'f' in fscript really stands for  ohmy

Thanks to everyone who's working on this in order to re-align the stars.
Logged

Chris
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,806



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: September 20, 2009, 09:27:03 PM »

I'm beginning to understand what the  'f' in fscript really stands for  ohmy

I thought you already knew it was fantastic?  tongue
Logged

cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,167



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: September 20, 2009, 09:52:38 PM »

I'm beginning to understand what the  'f' in fscript really stands for  ohmy

I thought you already knew it was fantastic?  tongue
Grin Grin
Hoist by my own petard!
Logged

Chris
ecaradec
Honorary Member
**
Posts: 408



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: September 21, 2009, 01:53:36 AM »

It's really F...Script. Guess what fits in ?
Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,806



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: September 21, 2009, 03:52:59 AM »

It's really F...Script. Guess what fits in ?

I can think of a few things:


or
Logged

cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,167



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: September 21, 2009, 07:09:00 AM »

Quote from: ecardec
It's really F...Script. Guess what fits in ?
I assume it's neither U nor me.
Perhaps it's FlimScript.
Watch for its companion, FlamScript  Wink

Whatever it is, it certainly enables a lot of stuff, which I appreciate very much!
Logged

Chris
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.041s | Server load: 0.08 ]