MSFN Forum: can't understand test.eval - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

can't understand test.eval Rate Topic: -----

#1 User is offline   rbianco 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 28-October 04

  Posted 08 November 2004 - 08:33 AM

Hello all.

In my WIHU ini, i want an item to follow the selection state of a previous item.
Example: in this code
description.6 = XnView v1.74
command.6 = %SRCDRIVE%\$MistoMare$\XnView-win-full_v1.74.exe /VERYSILENT /SP-
selected.6 = 1, inherit

description.7 = XnView v1.74 - registry settings
command.7 = regedit /S %SRCDRIVE%\$MistoMare$\XnView_config.reg
test.eval.0 = selected.6
selected.7 = if.true
disabled.7 = if.false

i want the 7th item to auto-check when i check the 6th one; and vice-versa, i want the 7th to uncheck when i uncheck the 6th.

I thought i understood the test.eval thing, but i can't make it work. :no:
Can i do that with WIHU, without using a child entry in my menu?
What is the right syntax?
Thankyou.


#2 User is offline   XPect 

  • Junior
  • Pip
  • Group: Members
  • Posts: 80
  • Joined: 18-June 04

Posted 08 November 2004 - 10:18 AM

Hello,

Test.eval is designed to test a file (existence or version) or a registry key (existence or value), not to test another item in wihu.

If you want to chek 7 if 6 is checked, use subitems like this:

Quote

description.6 = XnView v1.74
command.6 = %SRCDRIVE%\$MistoMare$\XnView-win-full_v1.74.exe /VERYSILENT /SP-
selected.6 = 1, inherit

description.6.0 = XnView v1.74 - registry settings
command.6.0 = regedit /S %SRCDRIVE%\$MistoMare$\XnView_config.reg

I think this will do what you need ;)

Another tip, you can do this also without showing the second command to the user, to be shure that the second one is not accidentaly uncheked by hidding the second command, just had this line:

Quote

hidden.6.0=1


#3 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 08 November 2004 - 11:25 AM

XPect you are right, thx ;)
test.eval command should be used in conjunction with test command, wherby test may be used to compare against file existence, fileversion, filetime, registry key/value (existence). Please refer my manual or example install.ini for detailed information about how to use it.

Benjamin

#4 User is offline   rbianco 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 28-October 04

Posted 19 November 2004 - 12:37 PM

XPect, on Nov 8 2004, 10:18 AM, said:

If you want to chek 7 if 6 is checked, use subitems like this:

You're right, but i'd prefer to avoid bold-fonts for a pure aesthetic reason: each category -> bold, each software -> regular. ;)
Using sub-items means that the main item gets bold font... isn't it?

#5 User is offline   BenjaminKalytta 

  • Developer
  • PipPipPipPip
  • Group: Members
  • Posts: 609
  • Joined: 08-June 04

Posted 19 November 2004 - 04:30 PM

Quote

Using sub-items means that the main item gets bold font... isn't it?

No, that's not true.

btw. "test.eval.0 = selected.6" isn't allowed here.
Please refer my manual for more details.

Benjamin

#6 User is offline   rbianco 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 28-October 04

Posted 25 November 2004 - 02:12 AM

You were right, i missed some things in my test. :P
Thankyou all!

Now i just wait the bugfixing of the italian translator.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy