|
Jarod Godel
Utilitarian
Join date: 6 Nov 2003
Posts: 729
|
04-25-2006 08:27
Here's a little script I just bashed together that lets me programmatically send text into Second Life. SL will already need to be running, by the way. Dim wsh
Set wsh = WScript.CreateObject("WScript.Shell")
WScript.Sleep 500
wsh.AppActivate("Second Life")
wsh.SendKeys("hello") wsh.SendKeys(" ") wsh.SendKeys("world")
WScript.Sleep 500
wsh.SendKeys("~") Windows Script Hosting is the "language" I used for this, it's a subset of Visual Basic 6. Anyway, between this and MC Seattle's llStopAnimation("away") hack, maybe we can start building simple NPC's. I'm still not sure how to scrape text from SL, though -- well, I know from ten minutes of poking at City Game Tracker it would require reading bits from memory... Anyway, that's my subversive hack for the day. 
_____________________
"All designers in SL need to be aware of the fact that there are now quite simple methods of complete texture theft in SL that are impossible to stop..." - Cristiano MidnightAd aspera per intelligentem prohibitus.
|
|
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
|
04-25-2006 08:49
I would have used AutoIt
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly
Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey
|
|
Jarod Godel
Utilitarian
Join date: 6 Nov 2003
Posts: 729
|
04-25-2006 09:10
AutoIt? Wuzzat? EDIT: Oh, I see! Can it read text from an interface, though? That's what I'm really curious about. EDIT: Nevermind. It wouldn't need to listen...
_____________________
"All designers in SL need to be aware of the fact that there are now quite simple methods of complete texture theft in SL that are impossible to stop..." - Cristiano MidnightAd aspera per intelligentem prohibitus.
|
|
Draco18s Majestic
Registered User
Join date: 19 Sep 2005
Posts: 2,744
|
04-25-2006 11:47
Get a program called Ethereal and snag some of the packets SL reads and see if you can disect them to get chat messages. I'm sure that you could write your auto-NPC program to intercept certian packets (those for SL) as Ethereal does and have the code read them for the chat messages and voila.
|
|
Jarod Godel
Utilitarian
Join date: 6 Nov 2003
Posts: 729
|
04-25-2006 12:28
From: Draco18s Majestic Get a program called Ethereal and snag some of the packets SL reads and see if you can disect them to get chat messages. SL uses some compression or encryption schema on their data, so it's not straight text, ala Telnet. Now, that might just be using something like Gzip, I've never tested it. I think waiting for llHTTPRequest is going to be easier, though.
_____________________
"All designers in SL need to be aware of the fact that there are now quite simple methods of complete texture theft in SL that are impossible to stop..." - Cristiano MidnightAd aspera per intelligentem prohibitus.
|