Jump to content

Loading all widgets in the friendschat


drakensang

Recommended Posts

Hey, I am trying to build a script which requires that all widgets in the friends chat is loaded, how would i go on for creating something like this? I would need it to update every X time and preferably be invinsible but is not needed, would I have to make modifications to a client myself or is there a way to achieve this in OSBOT, anyone who has the knowledge for this please respond.

Link to comment
Share on other sites

10 hours ago, drakensang said:

Hey, I am trying to build a script which requires that all widgets in the friends chat is loaded, how would i go on for creating something like this? I would need it to update every X time and preferably be invinsible but is not needed, would I have to make modifications to a client myself or is there a way to achieve this in OSBOT, anyone who has the knowledge for this please respond.

Shouldn't having the friends only part of the chat selected and using the chat box api with maybe message listener work?

Link to comment
Share on other sites

17 hours ago, drakensang said:

Hey, I am trying to build a script which requires that all widgets in the friends chat is loaded, how would i go on for creating something like this? I would need it to update every X time and preferably be invinsible but is not needed, would I have to make modifications to a client myself or is there a way to achieve this in OSBOT, anyone who has the knowledge for this please respond.

Well with this info we know nothing tbh... 
If you tell us what you need for what reason we can tell you how to solve it or give you a better solution than the direction you are going :)

Link to comment
Share on other sites

3 hours ago, Khaleesi said:

Well with this info we know nothing tbh... 
If you tell us what you need for what reason we can tell you how to solve it or give you a better solution than the direction you are going :)

Hey, I need it to see when a name changes, so let's say a name changes once it will be displayed in the previous name, I want to load all previous names in the friendlist without having to hover over them, e.g if you dont hover over the previous name, it will not be visible for the widget selector, I want to load all of the previous names and do it all the time in the loop so it updates in real time. 

Link to comment
Share on other sites

4 hours ago, drakensang said:

Hey, I need it to see when a name changes, so let's say a name changes once it will be displayed in the previous name, I want to load all previous names in the friendlist without having to hover over them, e.g if you dont hover over the previous name, it will not be visible for the widget selector, I want to load all of the previous names and do it all the time in the loop so it updates in real time. 

or you can just cache all the names and refresh the list every few sec and check the diffrences.
What is the chance that multiple people changed their name within the same few seconds :D

Link to comment
Share on other sites

9 hours ago, drakensang said:

Hey, I need it to see when a name changes, so let's say a name changes once it will be displayed in the previous name, I want to load all previous names in the friendlist without having to hover over them, e.g if you dont hover over the previous name, it will not be visible for the widget selector, I want to load all of the previous names and do it all the time in the loop so it updates in real time. 

get the parent id of the friends list and loop the children. as long as its loaded you can still get the data from the widgets

Link to comment
Share on other sites

15 hours ago, Chris said:

get the parent id of the friends list and loop the children. as long as its loaded you can still get the data from the widgets

Tried this however this does not work, I did som debugging via the ignored list, the parent id of ignored list is 432, Let's say we hover over the name to see the previous name, the previous name will then proceed to be visible, if we hover away from it it will ofcourse stop being visible, the problem is that it cannot get the data from the widget, it just returns with that the child widget i entered does not exist. 

If you want to try this for yourself, add a account to your ignored list that has changed it's name within the past 30 days so you can hover it and see the previous name, try debugging it first and enter the root id of 432, first child id of 16 and second child id of 2, you will see that you cannot get any data from it, now hover your mouse over the username to have the previous name shown and then click the name to delete it, the previous name will be visible and you can now get data from it. 

I am in need of a solution that is dynamic and therefore should be able to see these previous names and update them every X seconds even though the mouse is not hovered over the names to display their previous names. I was thinking if there was some way to load these widgets, I assume it's a clientsided thing and not something server sided therefore somehow the client maybe can send a packet to show these widgets? I am not sure of how it works but any help in the right direction would be very appreciated.

To add on:

The widget children are invinsible for 432, 16 which is the widget for previous names, if someone has a previous name it would be 432, 16, 2 as an example and I cannot get it to loop through a widget that returns false on if it has any widget children incase nothing is visible

Edited by drakensang
important
Link to comment
Share on other sites

20 hours ago, Khaleesi said:

or you can just cache all the names and refresh the list every few sec and check the diffrences.
What is the chance that multiple people changed their name within the same few seconds :D

I think you forgot the fact that a name is stored in the previous name incase the user wants to change back, I need my script to account for that and be dynamic.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...