how awesome is the VW community? pretty friggin’ awesome! (yes, friggin’) =D
Dana P. asked a scripting question to which i had no clue how to answer (if it isn’t an omega rotation or simple sit, then i am clueless!) =p
his question was how to open an HTML page in a browser from clicking an object in a Sim-on-a-Stick build. specifically, how to open a page on your machine, not one from the internet
he found out how to do it and posted how he did it and that’s another reason the VW community is awesome – people sharing what they learn =)
his solution started my little cogs to turning - this could be handy for projects where you may not want a user to get online but do want to present more detailed information, questions, activities, or whatever that may best be done in a browser
for example, our science project of Enclave Harbour could be deployed as a pre-loaded SoaS package that a student installs on their PC. then we could use Dana’s approach to launch additional info pages that were included with the Enclave-Harbour-on-a-Stick build
a specific example would be the reverse osmosis tubes in our desalination plant – there could be a “more info” icon on them that would allow a student to click and be sent to a custom HTML page or even a PDF that we create and distribute only with the stick (and thus keep fully self-contained for students)
here’s what i did:
default
{
touch_start(integer total_number)
{
llLoadURL(llDetectedKey(0), "Learn More", "http://127.0.0.1:9100/wifi/mypages/mytest.html");
}
}
the wifi folder is already defined in SoaS so i simply added a content folder for my test page. now a user could click an in-world object and launch a browser to access stick-specific files without needing an internet connection
thanks Dana! this is something to think about and certainly can add value =)

could be anything that a browser can open

























