Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

can't understand test.eval

Featured Replies

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.


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:

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:

hidden.6.0=1

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

  • 2 weeks later...
  • Author
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?

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

  • Author

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

Thankyou all!

Now i just wait the bugfixing of the italian translator.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.