Jump to content











Photo
- - - - -

Enhanced dependency managing


  • Please log in to reply
3 replies to this topic

#1 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 October 2009 - 12:28 PM

Introduced by some post in the vUSBDummy topic I wrote an application WBHandleDependencies.exe.

It reads the [Dependencies] section of selected scripts and depending on the content of the section, does some action.

The syntax in the [Dependencies] section is similar to the Verify syntax.

The program can check whether
  • One or more scripts are selected
  • And / or compare the value of a script's interface variable with a given standard.
Depending on the result it
  • Selects a script
  • Deselects a script
  • Changes the value of an interface variable in a script
Because script placement may be different in different projects, as script identifier the script's title is used.
As sample, I modified the vUSBDummyDisk.Script:

I added three radio buttons:
  • Select MountStorePE
  • Unselect MountStorePE
  • Let MountStorePE untouched.
vUSBDummyDisk.Script's [Dependencies] section:
[Dependencies]

 If {$$} then {Select {Removable Devices Combo}};

 If {{$$} & {$$:pRadioButton1}=True} then {Select {MountStorePE}};

 If {{$$} & {$$:pRadioButton2}=True} then {Unselect {MountStorePE}};
Result:
When vUSBDummyDisk.Script is selected, allways RemovableDevicesCombo is also selected.
MountStorePE is selected / unselected, depending on the user's choice.

The !HandleDependencies.script is downloadable from the nativeEx server: http://nativeex.boot-land.net/Scripts/!...ependencies.zip

Peter

#2 Lancelot

Lancelot

    Frequent Member

  • .script developer
  • 5013 posts
  • Location:Turkiye/Izmir
  • Interests:*Mechanical stuff and Physics,
    *LiveXP, BartPE, SherpyaXPE,
    *Basketball and Looong Walking,
    *Buying outwear for my girlf (Reason: Girls are stupid about buying bad stuff to make themselves uglier :))
    *Girls (Lyric: Girl,...., You will be a womann, Soon)
    *Answering questions for "Meaning of life",
    *Helping people,

    Kung with LiveXP, Fu with Peter :)
  •  
    Turkey

Posted 09 October 2009 - 01:01 PM

Hi psc,

Thanks, I feel fxscrpt will love !HandleDependencies.script. :hypocrite:

Minor things for hostosx64 about script:
better to change 2 lines of
ShellExecute,Open,%VerLog%
To
System,FILEREDIRECT,OFF

ShellExecute,Hide,cmd.exe,"/C #$q%VerLog%#$q"

System,FILEREDIRECT,ON

and 1 line of
ShellExecuteEx,Open,"#$q%ProjectTemp%\%htm%#$q",""
To
System,FILEREDIRECT,OFF

ShellExecute,Hide,cmd.exe,"/C #$q%ProjectTemp%\%htm%#$q"

System,FILEREDIRECT,ON

ps: Reason of these changes explained MANY many many times before, no need to mention here not to go out of subject.

#3 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 October 2009 - 03:29 PM

Let me add to ask for a favour:

The app is in a very early stage of development. I'm rather sure that syntax errors can bring it to crash.
Whenever you got such a situation, please post the 'causing syntax' here.

Peter

#4 pscEx

pscEx

    Platinum Member

  • Team Reboot
  • 12707 posts
  • Location:Korschenbroich, Germany
  • Interests:What somebody else cannot do.
  •  
    European Union

Posted 09 October 2009 - 03:42 PM

Minor things for hostosx64 about script:
...

I tested the current script in my Vista x64 and did not find anything strange.

But because your suggested code does not bring harm for x86, I changed and sent to server.

Peter :hypocrite:




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users