Network connection
1 Attachment(s)
I derived this program from the Jython scripting works on this website:
[URL="http://www.westga.edu/%7Edrocco/alice/"]http://www.westga.edu/~drocco/alice/[/URL] Just make sure you put the protocol at the beginning: [URL]http://www.alice.org[/URL] Good [URL="http://www.alice.org"]www.alice.org[/URL] Bad! I am having trouble with some of the parameters, and I don't know enough to reqrite the script in a more efficient way. This type of advanced scripting may be just what we need to take Alice to the next level. There is plently of documentation on Jython, and it is relatively simple. It can even run alongside drag and drop programming! It can do advanced string methods, too. It's essentially full Java, without having to wait for 3.0! |
Impresive
Ok, well this impreses me but I just wonder what purpose does this have. I mean I see absolutley no use for this because you can llook at the source html in internet explorer. But dont get me wrong this is a very cool world.
|
Can you see the possibilities for it, though? If Alice can connect to any internet page and read data from that page, then we can implement saved games, high scores, passwords, and lots of other cool stuff! This opens up loads of new possibilities!
|
Yeah! I was also looking into the other capabilities of Jython. It can access the file system, and possibly, even save extentions itself. (eg. updating and saving games to the file):)
Also, if you right your own website in html without all the extra stuff, alice can read it very well. |
I wish it could interact. Just out of teh ordinary. Did anyoen get more than 3 feet of snow. I did
|
It can! It can open any web adress, including a php form. Using the A joined with B function, you can have your program append parameters, which can be read by the web server.
|
OH i did not know that
|
1 Attachment(s)
I've gotten file access to work! Make sure that the location parameter is the full file path. The methods are pretty slf explainatory, so it's not too hoard.
|
...Incredible...:eek::D
|
I know. It took a lot of work, but I've started to self-teach myself Jython. Well... I'm teaching myself python, which works just like Jython - Java!:)
The Jython console runs [B][I][U]MUCH [/U][/I][/B]faster than the regular alice stuff, so it's a great addition to things that compile stuff, such as my alice word. |
All times are GMT -5. The time now is 09:17 AM. |
Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.