BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.4 support => Topic started by: Sorekill on August 08, 2007, 04:56:57 am

Title: a Info file
Post by: Sorekill on August 08, 2007, 04:56:57 am
I am still trying to figure out everything with this bot  ;D Anyways, I am wondering how I can take a text file and implement it into the bot where a member could call a command to pull up this text file in a window.

I know in old IGN, I could open a notepad window on the machine running the bot and copy and paste a text file and then able to call if in game from the bot...it was nice to post quest guides and whatnot so a person didn't have to alt tab all the time...just wondering if there is a way to do this in bebot and what the command is.

Thanks,
Sorekill
Title: Re: a Info file
Post by: Blueeagle on August 08, 2007, 04:20:35 pm
I'm just guessing here at what you mean, but it would entail running an exec() on the client to open notepad and then, as far as I know, the user would have to manually copy/paste into the notepad window. Then save the file. It might be possible to pass the default AO location to notepad in an attempt to create the right file.

As for calling the textfiles in-game that would be done by placing the file in the right folder and then running a client-command to invoke the saved file.

However there are no guarantees that AO is located in the default install directory and there are no guarantees that everyone is using the same notepad.exe. Some might be using other "enhanced" notepads that don't accept filename as an argument when starting a new file (ie. notepad+).

What files are you thinking about saving on the client-side?
Title: Re: a Info file
Post by: Glarawyn on August 08, 2007, 04:32:35 pm
He means that he's running the bot and AO on the same computer.

IGN bot has a feature where you can issue the bot a command and it will launch notepad.exe with a specific file open on a Windows computer. The file was in the IGN bot's directory. Once the file was saved, you could make IGN bot display the text in game.

There is a fairly obvious flaw with this...it doesn't work on any platform except for Windows. As most Linux users will be running the bot in the background with no access to the display, simply launching an editor isn't going to work.

I personally doubt this would ever be an official feature of BeBot, though it is easy enough to create a module to do similar things. See APF Guides (http://bebot.link/index.php/topic,363.0.html) for an example.
SimplePortal 2.3.7 © 2008-2024, SimplePortal