October 17, 200817 yr I read the latest WPI has the ability to check for an internet connection.I would like to implement this into all the installs that download things such as updates (Spybot for example)How do I go about creating a greyed condition for if there is no internet connection.I can't seem to find many/any tutorials on conditions for applications.Further, Can you add a condition to a registry add?Such as "Registry After" is dependent on if the program it is intended for was installed.How can I do both these things?
October 19, 200817 yr ConnectedToInternet() -or- !ConnectedToInternet()Returns true or false.No, can't do deps/conds n Reg B/A. They will be eliminated in a near future release. But they will be converted over properly so don't worry about future compatibility.
October 21, 200817 yr Author So all I do is type in the greyed condition box...ConnectedToInternet(False)?Is there like a guide or something on these things? And no, the help with WPI doesn't have it
October 21, 200817 yr Actually when using conditions and exclusion the proper term is like so:ConnectedToInternet()=="False"The above will make the entry disappear if you are connected to the internet.YES I know it's not in the manual, the manual is in the process of being re-written and should cover everything this time. (I just hate the bookwork )Nearly everything can be found in the changelog though...Further, Can you add a condition to a registry add?Such as "Registry After" is dependent on if the program it is intended for was installed.How can I do both these things?With this I would add the reg as a totally separate entry with the needed condition added in, be it looking for a file, a program is installed name or anything like that.then just add it as a dep to the parent program. Edited October 21, 200817 yr by Kelsenellenelvian
October 21, 200817 yr When a condition, such as ConnectedToInternet(), is a true/false check, then don't do it like Kels said; do it like I posted.ConnectedToInternet() - if there is a connecton, item is grayed.!ConnectedToInternet() - if there is no connection, item is grayed. This is the more common one.Now, when checking a name of something, like OS, then yes, do a check.getOSver()=="XP" - if is on XP Windows then grayed.getOSver != "Vista" - if not on a Vista Window then not grayed.
October 21, 200817 yr Well now see why didn't someone tell me? It does work both ways but some major changes are in the works so I would listen to mritter.
Create an account or sign in to comment