collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: a Info file  (Read 5471 times)

0 Members and 1 Guest are viewing this topic.

Offline Sorekill

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
a Info file
« 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

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: a Info file
« Reply #1 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?
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: a Info file
« Reply #2 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 for an example.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 221
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal