Topic: PluginManager - for managing project plugin selections  (Read 12224 times)

0 Members and 1 Guest are viewing this topic.

PluginManager - for managing project plugin selections
« on: March 02, 2011, 10:36:39 AM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
New plugin called PluginManager which is also attached here. It's still under development (after receiving some feedback from Lancelot) and testing. But I thought I'd give notice here so that others might notice the change.

As you probably well know, the previous scripts WBManager and Verify used closed-source applications. Hence they could not be updated by anybody other than the author, which brings significant limitations and problems in this regard. So I've whipped up a new plugin which unites the functions of these two past scripts uses an AU3 file. Verification of Gena using the new method is a little slower than previously, due to the fact that now WB itself performs the task. But the benefit of this is that (a) syntax is more transparent and usable by people; and (b) the plugin is completely open-source.

Regards,
Galapo.

EDIT 2011-11-28: Attachment removed -- plugin is available on the Gena and SE servers.
« Last Edit: January 27, 2017, 12:46:34 AM by Lancelot »

Re: ScriptManager
« Reply #1 on: March 02, 2011, 11:43:23 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7052
Mini tutorial about getting a ready .ini file:

+ ScriptManager at Gena\Utils)
+ Click "yellow" opendirectory button, this will get explorer open a folder
+ put custom ini file(s) (ex: ScriptManager-agent47_50.ini) to that folder
+ Click "Refresh" button
+ At right of Restore, there is scrollbox, select the one you want (ex: "agent47_50" )
+ than on ScriptManager click "Restore Button"
==> this will get your Gena plugin selection configuration same with selected ini config......


Getting a ready ini file is useful when sharing :>




Great work Galapo  :thumbsup: :thumbsup:

Currently no time to catch bugs and support much, I hope others give a hand.  :cool:
« Last Edit: April 21, 2012, 05:55:35 AM by Lancelot »

Re: ScriptManager
« Reply #2 on: March 02, 2011, 06:53:25 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
New version attached to first posts. Now [Links] section in folder.project is saved when creating script selection backup.

Regards,
Galapo.

Re: ScriptManager
« Reply #3 on: March 03, 2011, 05:20:44 AM »

Homes32

  • Code Baker
  • Chef
  • ***
  • Date Registered: Dec 2010
  • Posts: 109
is there any documentation or instructions for using Verify if scripts?

Re: ScriptManager
« Reply #4 on: March 03, 2011, 08:33:21 AM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7052
Hi homes32,

I do not know details for now... no time to check..

Create-Restore would save script settings, no documentation required for that..... I hope your tests give good results.


for verification, as far as I know:
all scripts settings saved in a document, named as %VerificationInfo%
(%VerificationInfo%=.....blabla.ini)
than all scripts scanned to find
[Main]
...
Verification=True

IF (When) found, [Verification] section of this script executed.

giving example:
test.script
another.script
you have a test script that requires another script with "Title=Another World" having pCheckBox2 enabled.

inside test.script yoo add
[Main]
...
Verification=True

[Verification]
IniRead,%VerificationInfo%,"Another World",pCheckBox2,%Int%
If,Not,%Int%,Equal,True,Begin
Message,"test requires 'Another World' blabla enabled ",ERROR
Halt,"test requires 'Another World' blabla enabled "
End



....reminding I did not test yet, no time, I hope above useful.

Re: ScriptManager
« Reply #5 on: March 03, 2011, 02:23:12 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
Ok, updated script is attached to first post.

Changes:

- added help file for verification
- added interface option to select verification section a project uses (the idea is that different projects, particuarly PE1 vs PE2, will often require different checks, so now there's some increased flexibility.

Help file reads:

Quote
ScriptManager provides an easy way to perform script dependency checks throughout a project.

Steps to make use of ScriptManager verification:

1) For a script requiring verification, insert a line 'Verification=True' under [Main].

2) Create a verification section corresponding to the desired projects verification routine. For example, Gena uses '[Verification-%ProjectTitle%]'.

3) Code the verification section using native WB syntax. Some examples:

      a) Checks on whether dependent scripts are selected

Code: [Select]
[Verification-Gena]
Echo,"Verification: Performing verifications on %ScriptTitle%"
IniRead,%ScriptFile%,Main,Selected,%ScriptSel%
  If,%ScriptSel%,Equal,True,Begin
  IniRead,%VerificationInfo%,"Some script_Main",Selected,%Sel%
  If,Not,%Sel%,Equal,True,Begin
    Message,"Verification error: Project requires 'Some script' script to be selected",ERROR
    Halt,"Verification error: Project requires 'Some script' script to be selected"
  End
End

      b) Checks on dependent interface items

Code: [Select]
[Verification-Gena]
Echo,"Verification: Performing verifications on %ScriptTitle%"
IniRead,%ScriptFile%,Main,Selected,%ScriptSel%
If,%ScriptSel%,Equal,True,Begin
  IniRead,%VerificationInfo%,"Some script_Interface",pScrollBox1,%Int%
  If,Not,%Int%,Equal,"some line",Begin
    Message,"Verification error: bla bla",ERROR
    Halt,"Verification error: bla bla"
  End
End

4) Regarding the syntax, the following needs to be taken into account:

%VerificationInfo% is the file where all current script selections etc. are saved. 'IniRead' is used to retrieve information from this file

Script data in %VerificationInfo% is saved under the name of scripts appended with and underscore followed by the section name.
Thus [Main] data is saved under 'ScriptTitle_Main' and [Interface] data is saved under 'ScriptTitle_Interface'. See the examples above.


Hope this helps.

Regards,
Galapo.

Re: ScriptManager
« Reply #6 on: March 09, 2011, 02:25:17 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
New version is now attached to the first post. Some improvements made and some bugs fixed.

Regards,
Galapo.

Re: ScriptManager
« Reply #7 on: March 13, 2011, 01:16:16 AM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
New version uploaded at first post. ScriptManager now handles WB .LINK files.

One more step to Gena release is therefore complete. Maybe I can get to fixing OtherOS scripts, if I can find a bit of time the next day or two.

Regards,
Galapo.

Re: ScriptManager
« Reply #8 on: March 13, 2011, 12:54:37 PM »

Homes32

  • Code Baker
  • Chef
  • ***
  • Date Registered: Dec 2010
  • Posts: 109
will give it a try. thanks!

Re: ScriptManager
« Reply #9 on: March 13, 2011, 01:09:50 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7052
Hi Galapo,

just an idea came for verification part:

what about scaning 2 sections ?
this way, we can split "General" verification from "Project specific" verification easly.

What I mean is:
on most general case, pre-request files checked, hence using [Verification] will fit all projects
Code: [Select]
[Verification]
IniRead,%ScriptFile%,Main,Selected,%ScriptSel%
If,%ScriptSel%,Equal,True,Begin
If,Not,ExistFile,%pFileBox1%\blabla.exe,Message,"%ScriptTitle%: blabla.exe missing",Error
If,Not,ExistFile,%pFileBox1%\blabla.exe,Halt,"%ScriptTitle%: blabla.exe missing"
End

for [Verification-Gena] , mostly relations between project specific scripts important...... (ex: BootDI)

this way, a script author can easly make his/her own general use [Verification]

what you think  :cool:
« Last Edit: March 13, 2011, 01:10:45 PM by Lancelot »

Re: ScriptManager
« Reply #10 on: March 13, 2011, 01:20:24 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
Good idea.  :thumbsup:

I'll add the functionality to be able to specify multiple sections. (Remember: freedom and flexibility is our motto.)

Regards,
Galapo.

Re: ScriptManager
« Reply #11 on: March 13, 2011, 01:21:38 PM »

Lancelot

  • Gena Baker
  • Grand Chef
  • *****
  • Date Registered: Sep 2010
  • Posts: 7052
(Remember: freedom and flexibility is our motto.)
How can I forget  :grin: :lol: Remember: fun  :tongue:

Re: ScriptManager
« Reply #12 on: March 13, 2011, 08:51:33 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
New version uploaded to first post. Changes:

- now can set more than one verification section to check
- now can select to perform verification on script slections before generating selection backup

Regards,
Galapo.

Re: ScriptManager
« Reply #13 on: April 06, 2011, 04:23:37 AM »

NIKZZZZ

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Feb 2011
  • Posts: 64
Hi, Galapo

Has found a small bug:

Source:
pCheckBox61="NVIDIA nForce RAID Driver MCP04,CK804,MCP51,MCP55,MCP61,MCP65,MCP67,MCP72",1,3,341,502,447,18,True
Restored:
pCheckBox61="NVIDIA nForce RAID Driver MCP04",CK804,MCP51,MCP55,MCP61,MCP65,MCP67,MCP72",1,3,341,502,447,18,True

Regards,
Nikzzzz.

Re: ScriptManager
« Reply #14 on: April 06, 2011, 11:33:30 AM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
Hi Nikzzzz,

Thanks for reporting.  :thumbsup:

Can you tell me which script you're encountering this issue on or provide a link?

Thanks,
Galapo.

Re: ScriptManager
« Reply #15 on: April 07, 2011, 02:40:34 AM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
Hi Nikzzzz,

Don't worry about posting the script. I've worked out what's going on. The issue occurs due to a work-around I was using where AutoIt stripped of quotes in an IniRead. I'll have to implent something else.

Regards,
Galapo.

Re: ScriptManager
« Reply #16 on: April 07, 2011, 09:40:07 AM »

NIKZZZZ

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Feb 2011
  • Posts: 64
Hi,Galapo
It I do not doubt  :grin:
Old version script
Last version in Russian Forum.
Regards,
Nikzzzz.

Re: ScriptManager
« Reply #17 on: April 07, 2011, 05:16:49 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
Hi Nikzzzz,

Hopefully I've sorted out the bug.

New version attached at first post, or download from the Gena server.

Regards,
Galapo.

Re: ScriptManager
« Reply #18 on: April 10, 2011, 09:58:36 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
Updated first post with a new version.

Had to work-around a WB bug where 'Exec' calls had to be changed to 'Run' calls so that correct script processing order was maintained through the build.

Regards,
Galapo.

Re: ScriptManager
« Reply #19 on: April 20, 2011, 09:18:33 PM »

Galapo

  • Gena Baker
  • Grand Chef
  • *****
  • Location: Australia
  • Date Registered: Sep 2010
  • Posts: 1961
Updated first post with a new version. Added the abilty to set %scriptfile% to work-around further effects of using Run instead of Exec. Check WimBoot script for an example.

Regards,
Galapo.

 

Powered by EzPortal