{"action":"opened","issue":{"url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/148","repository_url":"https://api.github.com/repos/mrmin123/kancolle-auto","labels_url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/148/labels{/name}","comments_url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/148/comments","events_url":"https://api.github.com/repos/mrmin123/kancolle-auto/issues/148/events","html_url":"https://github.com/mrmin123/kancolle-auto/issues/148","id":142111477,"number":148,"title":"Recovery from DMM popup","user":{"login":"mrmin123","id":4326866,"avatar_url":"https://avatars.githubusercontent.com/u/4326866?v=3","gravatar_id":"","url":"https://api.github.com/users/mrmin123","html_url":"https://github.com/mrmin123","followers_url":"https://api.github.com/users/mrmin123/followers","following_url":"https://api.github.com/users/mrmin123/following{/other_user}","gists_url":"https://api.github.com/users/mrmin123/gists{/gist_id}","starred_url":"https://api.github.com/users/mrmin123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrmin123/subscriptions","organizations_url":"https://api.github.com/users/mrmin123/orgs","repos_url":"https://api.github.com/users/mrmin123/repos","events_url":"https://api.github.com/users/mrmin123/events{/privacy}","received_events_url":"https://api.github.com/users/mrmin123/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrmin123/kancolle-auto/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-19T23:38:44Z","updated_at":"2016-03-19T23:38:44Z","closed_at":null,"body":"#### Issue\r\nMultiple people (myself included) have been running into a DMM popup that would cease kancolle-auto's ability to click in the game's screen.\r\n\r\nThe popup in question:\r\n![](http://i.imgur.com/BP0fhfn.png)\r\n![](https://dl.dropboxusercontent.com/u/73564551/Games/KanColle/error.png)\r\n\r\nThis popup, per discussion in [this reddit thread](https://www.reddit.com/r/kancolle/comments/4a5lwp/question_why_do_i_sometimes_get_this_dmm_browser/) seems to be independent of kancolle-auto's behavior and could have something to do with DMM (patching of game/API refresh/bot-detect/etc) or the user's connection, or both.\r\n\r\nOn first glance, recovery from this presents a number of challenges and/or considerations (rambling ahead):\r\n\r\n1. As seen from the above screenshots, depending on the user's OS, Viewer, and system settings the style of the window is completely different, thus matching on the popup window itself is not possible unless the user generates their own popup screen capture to match on (may not be a bad idea)\r\n2. Does it allow for the page to refresh, or no? Ideally, if the popup occurs while being in the main screen, the refresh happens, and kancolle-auto goes through the recovery process from game start. If during combat, the refresh would ideally not happen. Maybe force a refresh after?\r\n3. Actually, refreshing regardless of context would actually be the most easy to implement. Otherwise the ability to retry the failed command on Exception would have to be implemented. Perhaps via a retry decorator?\r\n\r\nExtra note: that is actually not the only popup I've seen that would cause kancolle-auto to freeze up. As a KC3Kai user, sometimes updates from the plugin would attempt to force a refresh, which would cause the 'Are you sure you'd like to abandon your shipgirls etc' window to popup. Other times, I've seen the page attempt to refresh by itself, with no warning from DMM and no update from KC3Kai."}}