kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
345 stars 332 forks source link

/verify-tw window crashed the BOT #1946

Open Anton0926 opened 5 years ago

Anton0926 commented 5 years ago

Dears

Every time log into diablo ,the /verify-tw window will pop up, even I had verified with email, it makes BOT keep logging and crashing .

How to avoid the /verify-tw window ,it is really annoying. Thanks for help.

123

mf022 commented 5 years ago

That was posted in the past https://github.com/kolton/d2bot-with-kolbot/issues/1369, but unfortunately I haven't seen any solution till now.

also posted on https://d2bot.discourse.group/t/taiwan-region-need-help-to-run-d2bs/385

mf022 commented 5 years ago

Have that tw disclaimer mini window always that position? Does its position depends of d2 position on screen? The location of Y button should be translated in d2 coordinates.

according to d2nt controllinfo the buttons in its backside have: otherMultiplayer - (6, 264, 433, 272, 35) cinematics button - (6, 402, 528, 135, 25)

The location of Y button should be added in OOG.js. That button should be clicked, and you cannot press a keyboard key (Enter) like was the question on https://github.com/kolton/d2bot-with-kolbot/issues/1369

Anton0926 commented 5 years ago

Dear sir

Thanks for your response, the disclaimer will always shows up as long as execute diablo. Yes, the disclaimer will be always on the same position, Is it possible use bot to click Y to pass the disclaimer ?

mf022 commented 5 years ago

maybe the solution for that mini msg box is to write smth in AutoIt

I forgot to ask: Does the closing of that mini window with X (top-right corner) has the same effect like pressing [Y] button ? If yes, @Mercoory suggested the closing of window with title Taiwan Legal Disclaimer in AutoIt

emily785 commented 5 years ago
While 1
    If WinExists("Taiwan Legal Disclaimer") Then
        ControlClick("Taiwan Legal Disclaimer", "", "[CLASS:Button; INSTANCE:1]")
    EndIf
    Sleep(1000)
WEnd

Try this AutoIt script.

peters0908 commented 4 years ago
While 1
  If WinExists("Taiwan Legal Disclaimer") Then
      ControlClick("Taiwan Legal Disclaimer", "", "[CLASS:Button; INSTANCE:1]")
  EndIf
  Sleep(1000)
WEnd

Try this AutoIt script.

Tried but it won't work. I found you can press "y" or "Enter" key to close that pop-up window. So can you kindly change that script to simulate key press action? Many thx.

Mercoory commented 4 years ago
While 1
    If WinExists("Taiwan Legal Disclaimer") Then
        ControlClick("Taiwan Legal Disclaimer", "", "[CLASS:Button; INSTANCE:1]")
    EndIf
    Sleep(1000)
WEnd

Try this AutoIt script.

Tried but it won't work. I found you can press "y" or "Enter" key to close that pop-up window. So can you kindly change that script to simulate key press action? Many thx.

Try :

While 1
    If WinExists("Taiwan Legal Disclaimer") Then
        WinWaitActive("Taiwan Legal Disclaimer")
        Send("{ENTER}")
    EndIf
    Sleep(1000)
WEnd
ptzu commented 4 years ago

Where should I put this code? I didn't find the AutoIt script.

Mercoory commented 4 years ago

Where should I put this code? I didn't find the AutoIt script.

^ That is the script.

ptzu commented 4 years ago

Do I need to include this script somewhere?

mf022 commented 4 years ago

Do I need to include this script somewhere?

ptzu commented 4 years ago

It works when I open dialob2.exe manually. However, it won't work when the game is opened by b2bot.exe.

Mercoory commented 4 years ago

I can't test it, but try

ptzu commented 4 years ago

Thank you, running it as Administrative privileges works