{"action":"created","issue":{"url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256","repository_url":"https://api.github.com/repos/pywinauto/pywinauto","labels_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256/comments","events_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256/events","html_url":"https://github.com/pywinauto/pywinauto/issues/256","id":186087262,"number":256,"title":"Any possibility to make backend uia faster","user":{"login":"nimuston","id":20014724,"avatar_url":"https://avatars.githubusercontent.com/u/20014724?v=3","gravatar_id":"","url":"https://api.github.com/users/nimuston","html_url":"https://github.com/nimuston","followers_url":"https://api.github.com/users/nimuston/followers","following_url":"https://api.github.com/users/nimuston/following{/other_user}","gists_url":"https://api.github.com/users/nimuston/gists{/gist_id}","starred_url":"https://api.github.com/users/nimuston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nimuston/subscriptions","organizations_url":"https://api.github.com/users/nimuston/orgs","repos_url":"https://api.github.com/users/nimuston/repos","events_url":"https://api.github.com/users/nimuston/events{/privacy}","received_events_url":"https://api.github.com/users/nimuston/received_events","type":"User","site_admin":false},"labels":[{"id":215838057,"url":"https://api.github.com/repos/pywinauto/pywinauto/labels/bug","name":"bug","color":"fc2929","default":true},{"id":276422727,"url":"https://api.github.com/repos/pywinauto/pywinauto/labels/UIA-related","name":"UIA-related","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":40,"created_at":"2016-10-29T16:27:19Z","updated_at":"2016-12-18T20:40:16Z","closed_at":null,"body":"i have a very simple script that click few buttons in calculator app. If I use backend win32 executing script takes about 16 sec, but if I use backend uia same script takes 1 min 35 sec. Below examples scripts. Each script is executed 4 times.\n\nscript below uses buttons text to find it\n\n```\napp = Application()\nappconnect = app.connect(title='Calculator')\napp_dlg = appconnect.top_window_()\napp_dlg.window_(best_match='3').Click()\n```\n\nscript below uses buttons automatinID\n\n```\napp = Application(backend='uia')\nappconnect = app.connect(title='Calculator')\napp_dlg = appconnect.top_window_()\napp_dlg.child_window(auto_id='button5').click_input()\n```\n"},"comment":{"url":"https://api.github.com/repos/pywinauto/pywinauto/issues/comments/267845025","html_url":"https://github.com/pywinauto/pywinauto/issues/256#issuecomment-267845025","issue_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/256","id":267845025,"user":{"login":"airelil","id":795040,"avatar_url":"https://avatars.githubusercontent.com/u/795040?v=3","gravatar_id":"","url":"https://api.github.com/users/airelil","html_url":"https://github.com/airelil","followers_url":"https://api.github.com/users/airelil/followers","following_url":"https://api.github.com/users/airelil/following{/other_user}","gists_url":"https://api.github.com/users/airelil/gists{/gist_id}","starred_url":"https://api.github.com/users/airelil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airelil/subscriptions","organizations_url":"https://api.github.com/users/airelil/orgs","repos_url":"https://api.github.com/users/airelil/repos","events_url":"https://api.github.com/users/airelil/events{/privacy}","received_events_url":"https://api.github.com/users/airelil/received_events","type":"User","site_admin":false},"created_at":"2016-12-18T20:40:16Z","updated_at":"2016-12-18T20:40:16Z","body":"@nimuston, I know it's doesn't help with your main problem but still. With my fix in the master you can get now use your original code without specifiying 'element_info' explicitly:\r\n```python\r\nbutton = secondwindow.child_window(parent=secondwindow, title=\"button 1\", auto_id=\"toolbar_button1\", control_type=\"Button\")\r\nbutton.click_input()\r\n```"}}
{"actor":{"display_login":"airelil"}}