is there a way to enable and use global chat or trade chat while the bot is running? it will give the single instance users something to do while babysitting the bot. thanks for the great work guys.
This is not possible, and most likely not going to be supported in the future, due to the way the game works. They auto close the chat window, and the bot requires client input priority to do anything. It's an input driven game, so trying to do things in the client when the bot is running interferes with it.
How can you do similar in diablo 3 just fine then? I'm able to open/close the inventory and change my skills just fine while it runs. Is that different from the chat interface?
pushedX could you add a coroutine sendToChat(channel, string) to the API? This would enable a simple plugin/poi to the script that simply accepts input strings and then calls sendToChat to type everything at once quickly. Honorbuddy did this a while back so you could type while your bot was spamming spells.
The bot needs inputs to work, so basically, press keys to work, how can you press keys to use spells and write at the same time? parallel world?
You would not press keys to use spells and write at the same time. sendChat would be a coroutine that you would run using the Await command, and it would wait for the period between when your bot is spamming spells, and instead when it is just using click to move. At that point, it would take the entire string that was typed, and enter it into chat extremely quickly and send it off, before it needs to send any other spells to the client We would also need the capacity to read responses from chat added to the api (I didn't see one in there, but I could have missed it). Doing so would allow for you to have a seperate window up, that would log everything from the chat(And alert you if your name is said/whisper happens) and allow you to send things back to them, that would be typed out once the bot is ready.
LokiPoe.InGameState.ChatMessages will be available in the next beta. It will return an IEnumerable of strings of the current chat messages the client has stored. These chat messages are in text format, so you can't see or work with item properties listed in chat, as they are stored differently. Here's an image of the output for example. You need to register and have one post to see spoilers! Some more work has to be done to expose an API for sending messages. For now, it'll be on the todo list. We will not implement direct sending of messages via packets, as it goes against the way the bots need to be setup. As a result, sending messages isn't supported, but you'll at least be able to setup alerts from the chat message processing.