rbianco Posted November 8, 2004 Share Posted November 8, 2004 Hello all.In my WIHU ini, i want an item to follow the selection state of a previous item.Example: in this codedescription.6 = XnView v1.74command.6 = %SRCDRIVE%\$MistoMare$\XnView-win-full_v1.74.exe /VERYSILENT /SP-selected.6 = 1, inheritdescription.7 = XnView v1.74 - registry settingscommand.7 = regedit /S %SRCDRIVE%\$MistoMare$\XnView_config.regtest.eval.0 = selected.6selected.7 = if.truedisabled.7 = if.falsei 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. Can i do that with WIHU, without using a child entry in my menu?What is the right syntax?Thankyou. Link to comment Share on other sites More sharing options...
XPect Posted November 8, 2004 Share Posted November 8, 2004 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.74command.6 = %SRCDRIVE%\$MistoMare$\XnView-win-full_v1.74.exe /VERYSILENT /SP-selected.6 = 1, inheritdescription.6.0 = XnView v1.74 - registry settingscommand.6.0 = regedit /S %SRCDRIVE%\$MistoMare$\XnView_config.regI 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 Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted November 8, 2004 Share Posted November 8, 2004 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 Link to comment Share on other sites More sharing options...
rbianco Posted November 19, 2004 Author Share Posted November 19, 2004 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? Link to comment Share on other sites More sharing options...
BenjaminKalytta Posted November 19, 2004 Share Posted November 19, 2004 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 Link to comment Share on other sites More sharing options...
rbianco Posted November 25, 2004 Author Share Posted November 25, 2004 You were right, i missed some things in my test. Thankyou all!Now i just wait the bugfixing of the italian translator. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now