Welcome Guest.   Make a donation to an author on the site September 18, 2014, 02:43:36 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.
 
Free DonationCoder.com Member Kit: Submit Request.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Question about FScript (1.19)  (Read 2756 times)
jpprater
Supporting Member
**
Posts: 88



see users location on a map View Profile Give some DonationCredits to this forum member
« on: December 10, 2009, 09:47:52 PM »

I'm trying to write a FARR plugin using FScript.  Other plugins I've seen have used aliases to trigger the action of the plugin itself, but I'm having issues wrapping my head around what these plugins are actually doing. The documentation isn't telling me very much about how to interpret that, unfortunately. Sad
For instance, in my plugin, the user can type in 'pinfo explore'.  The only result my plugin returns for that is "Search for $$1".  Upon pressing enter, the plugin should run a query using the specified parameter.  I can't even figure out how to make my plugin accept a parameter, let alone trigger anything with it!  Any help, please?
Logged
mouser
First Author
Administrator
*****
Posts: 33,356



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

Ok so let me start by saying:
The reason you are frustrated is not your fault -- it's mine for not doing a better job explaining and documenting plugin stuff, and its just the nature of the current state of FARR.
So curse me out, take a deep breath, and then please don't give up.
The other problem is that the fscript plugin wrapper is an incredible thing that i only have the most beginner understanding of.. so im not the best one to help, but ill try until the fscript pros come by.
« Last Edit: December 10, 2009, 09:53:15 PM by mouser » Logged
mouser
First Author
Administrator
*****
Posts: 33,356



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: December 10, 2009, 09:54:59 PM »

Let's start off with the basics:
What language are you planning to actually write your fscript-based plugin in? Javascript I assume?
Have you considered using FSubScript instead of Fscript? FSubScript uses Fscript but makes it a bit easier to do common stuff.
Logged
jpprater
Supporting Member
**
Posts: 88



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #3 on: December 10, 2009, 10:03:39 PM »

What language are you planning to actually write your fscript-based plugin in? Javascript I assume?
Have you considered using FSubScript instead of Fscript? FSubScript uses Fscript but makes it a bit easier to do common stuff.
Javascript, yes.  Does FSubscript have the same API (except for putting plugin code in an fsubscript.js file instead of fscript.js Wink)?
Logged
mouser
First Author
Administrator
*****
Posts: 33,356



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: December 10, 2009, 10:06:46 PM »

fsubscript is easier for smaller plugins, i think the api is a bit simplified.

i should say one other thing -- although its a bit confusing at first, i think you'll find that once you get the hang of it, it's really easy to make plugins in either fscript or fsubscript -- it's just getting started and getting your first plugin working that is the tricky part.

your instinct was right -- find a sample plugin and work from that.
Logged
jpprater
Supporting Member
**
Posts: 88



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #5 on: December 10, 2009, 10:11:25 PM »

I'm trying, Mouser. smiley  You've done an awesome job on FARR, and I appreciate it tremendously.
I'd like to get this done in time for a NANY release, but if that doesn't work out, I have a fine mini NANY that'll take it's place. cheesy  Non-FARR-related, sadly, but it'll still be cool.  thumbs up
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 #6 on: December 26, 2009, 09:57:41 AM »

I've put some documentation on how to build FARR plugins with FScript on the FARR plugin developer wiki at : http://farr.dcisv.com/dok...?id=fscript_documentation. The easiest way to start is by taking a plugin and modifying it to your need. It's easier to start in javascript or vbscript because other script language require custom setup on your desktop.
« Last Edit: December 26, 2009, 09:59:39 AM by ecaradec » Logged

Blog & Projects : Blog | Qatapult | SwiffOut | FScript
jpprater
Supporting Member
**
Posts: 88



see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #7 on: December 26, 2009, 04:43:04 PM »

I've put some documentation on how to build FARR plugins with FScript on the FARR plugin developer wiki at : http://farr.dcisv.com/dok...?id=fscript_documentation. The easiest way to start is by taking a plugin and modifying it to your need. It's easier to start in javascript or vbscript because other script language require custom setup on your desktop.
Nice job, ecaradec! Cool Thank you!
Logged
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.038s | Server load: 0.15 ]