Healix / Gw2Launcher

Manages and allows for multiple Guild Wars 2 clients to be launched
MIT License
179 stars 24 forks source link

Startup sometimes fails and network authentication too annoying to always do it manually #88

Open M6D6M6A opened 2 years ago

M6D6M6A commented 2 years ago

I'm trying to speed up my login process even more so it doesn't take me so long to do daily logins. For this I always let max 4 Accs start at the same time and also only then the next account when I am in the character selection. Sometimes it happens that when I click into the account that in the email field is then the password and the password field is empty, what could be the reason for this? Also, I'm currently in many public and different networks on the road and just have to copy the code from the Auth Tool (edit acc -> security). Would it not be possible via OCR or via the win32api or the process to insert the code? Unfortunately I am not so good in C# and do not have so much time, otherwise I could just try to rewrite it myself.

With kind regards, Philipp

Healix commented 2 years ago

You can view/copy the authenticator code by middle clicking the account (configured under Settings > Style > Actions). The fastest way to the enter the code is enabling right-click to paste (Settings > Tools).

I have a few potential ways to automate it, but I won't be able to experiment with that anytime soon. OCRing was one of those ways, but it's a last resort, as it requires keeping the launcher visible on screen due to how it's rendered.

The email/password failing is simply something that can happen. It basically works like a macro and Gw2Launcher can only confirm that the password was pasted, at which point it assumes it was entered correctly. If GW2 misses a key press, or if you paste or press ctrl/shift at the right moment, it can fail. Gw2Launcher tries to prevent these problems, but if the system is under heavy load, what normally takes <1ms can take seconds and that gap is where you can simply press shift to break it.

M6D6M6A commented 2 years ago

Thanks for the quick reply, ok that's a lot faster, but why is it not possible to bind that to right click? I normally use the mouse wheel to terminate the account.

Healix commented 2 years ago

Right click is currently reserved for the menu. Changing it is on my to do list.

M6D6M6A commented 2 years ago

Thanks, I will have a look at the code when I have time, I thought that this runs in the background as a macro, I will play around with the launcher, if you can somehow make it so that you can not interrupt it by mistake and then maybe also how you could check if the Auth window is there. Do you know if you can somehow be banned, for example if you read or write the Louncher memory, otherwise I would immediately exclude this method anyway?

Healix commented 2 years ago

You wouldn't be banned, but injecting and reading/writing memory is a technical violation.