Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 11, 2016, 04:09:56 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: javascript SDK requests  (Read 2948 times)

czb

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 336
    • View Profile
    • My open-source online piano game
    • Donate to Member
javascript SDK requests
« on: February 19, 2008, 02:06:16 AM »
1)To make custom user regex functioning. Is that possible? The other solution would be to put it into advanced plugin settings.
EDIT: I have also found that instead of writing:
Quote
regexstr="^gcal (.*?)=$";
scriptregex=/^gcal (.*?)=$/;
we can use
Quote
regexstr="^gcal (.*?)=$";
scriptregex = new RegExp(regexstr);
EDIT: and further writing
Quote
aliasstr="gcal";
pre_regexstr="^gcal ";
post_regexstr="(.*?)=$";
regexstr=pre_regexstr+post_regexstr;
scriptregex = new RegExp("^.*? "+post_regexstr);
user can set his own custom alias + regex but only the first part of it. So it can be also solution, but it is not the best...
2) When user saves (hits OK) advanced plug-in setting would call some callback function with user settings instead of just saving it

3) To implement all HTML FORM elements such as select, option etc. to advanced plugin settings

4) To logically separate *.js file and *.dll with separate updating etc.

Hopefully it is not toooo complicated to implement the requests :Thmbsup:
My open-source online piano game: https://github.com/musicope/game
« Last Edit: February 19, 2008, 02:38:13 AM by czechboy »

ecaradec

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 409
    • View Profile
    • Blog & Projects
    • Read more about this member.
    • Donate to Member
Re: javascript SDK requests
« Reply #1 on: February 19, 2008, 04:07:34 PM »
1 is possible. I could add matching group as extra arguments on onRegexSearchMatch. You could then use those and it would make the regex in the preferences active. This is FARR normal way, so I think this is the best option.
2 onOptionsChanged is called when the user press ok. Could you precise what you expect ?
3 would be good. I could also host a webbrowser and let you define options in html...
4 is a lot of work, I'm working on a prototype currently.
 - The options of all modules have to be merged in one interface
 - FARR does not display results before the plugin is complete (and since there would be more than once ), it would mean before all plugins complete.
Blog & Projects : Blog | Qatapult | SwiffOut | FScript

czb

  • Honorary Member
  • Joined in 2007
  • **
  • Posts: 336
    • View Profile
    • My open-source online piano game
    • Donate to Member
Re: javascript SDK requests
« Reply #2 on: February 20, 2008, 04:15:53 AM »
1) Thanks, sounds great :Thmbsup:
2) I missundestood it all... So thanks for explaining ;)
3) I am looking forward ;)
4) Hopefully it will be solvable somehow

Thank you for your answers and I am looking forward seeing new great versions :)
My open-source online piano game: https://github.com/musicope/game