hello, how can i use api to get the status of gw2, such as the characters select interface, thank you ,sir
uThisDay opened this issue · 5 comments
hello, how can i use api to get the status of gw2, such as the characters select interface, thank you ,sir.
Im a python user, I
m trying to write a script to change the location of the character. so, I need to get the status of the game,thank you again.
I'm assuming you want to automatically select a character? If you request the character API, it will list your characters in the current order displayed on character select:
https://api.guildwars2.com/v2/account?v=latest&access_token=API_KEY
However, the API is cached for 5 minutes once you make a request, so once you get the initial order, you have to maintain it yourself.
hi Healix, how can I know that the application is now "Loaded character select" in code. I use CE to find the Map Num in memory, but the Num doesnt change. Your Launcher have this function , but I am not familiarity with C. that
s embarrassed,thank you very much.
Now I can know which map the character is in , but I cant know when the app is in character select. because character logout to the character select , the Map Num in the memory is still the Map
s before logout , so I can`t judge that through the Map Num, tankYou a lot
MumbleLink only updates while you're playing a character, so it can't be used on character select or loading screens.
I don't actually detect when character select is loaded, I simply wait for GW2 to finish initializing, which happens to be when character select is loaded for the first time. It can't be used to detect logging out to character select.
The simplest option is to capture the screen. For example, check for a yellow point where the mastery icon is.