{"action":"created","issue":{"url":"https://api.github.com/repos/pywinauto/pywinauto/issues/476","repository_url":"https://api.github.com/repos/pywinauto/pywinauto","labels_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/476/labels{/name}","comments_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/476/comments","events_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/476/events","html_url":"https://github.com/pywinauto/pywinauto/issues/476","id":308545920,"number":476,"title":"SetCursorPos', 'No error message is available","user":{"login":"limonides","id":25852512,"avatar_url":"https://avatars1.githubusercontent.com/u/25852512?v=4","gravatar_id":"","url":"https://api.github.com/users/limonides","html_url":"https://github.com/limonides","followers_url":"https://api.github.com/users/limonides/followers","following_url":"https://api.github.com/users/limonides/following{/other_user}","gists_url":"https://api.github.com/users/limonides/gists{/gist_id}","starred_url":"https://api.github.com/users/limonides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limonides/subscriptions","organizations_url":"https://api.github.com/users/limonides/orgs","repos_url":"https://api.github.com/users/limonides/repos","events_url":"https://api.github.com/users/limonides/events{/privacy}","received_events_url":"https://api.github.com/users/limonides/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-26T12:11:05Z","updated_at":"2018-03-26T13:08:59Z","closed_at":null,"author_association":"NONE","body":"```\r\nfrom os import system\r\nfrom pywinauto.application import Application\r\n\r\nsystem(\"start C:\\\\tmp\\\\file.exe\")\r\n\r\n\r\napp = Application().Connect(title=u'Program Name', class_name='MsiDialogCloseClass')\r\ndialog = app.MsiDialogCloseClass\r\nbutton = dialog.Button\r\nbutton.click_input()\r\n```\r\n\r\nWhen i tried run my script received error:\r\n\r\n> File \"...\\pywinauto\\base_wrapper.py\", line 685, in click_input\r\n>     key_down=key_down, key_up=key_up)\r\n>   File \"..\\pywinauto\\mouse.py\", line 125, in _perform_click_input\r\n>     win32api.SetCursorPos((coords[0], coords[1]))\r\n> pywintypes.error: (0, 'SetCursorPos', 'No error message is available')"},"comment":{"url":"https://api.github.com/repos/pywinauto/pywinauto/issues/comments/376159573","html_url":"https://github.com/pywinauto/pywinauto/issues/476#issuecomment-376159573","issue_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/476","id":376159573,"user":{"login":"vasily-v-ryabov","id":7419086,"avatar_url":"https://avatars3.githubusercontent.com/u/7419086?v=4","gravatar_id":"","url":"https://api.github.com/users/vasily-v-ryabov","html_url":"https://github.com/vasily-v-ryabov","followers_url":"https://api.github.com/users/vasily-v-ryabov/followers","following_url":"https://api.github.com/users/vasily-v-ryabov/following{/other_user}","gists_url":"https://api.github.com/users/vasily-v-ryabov/gists{/gist_id}","starred_url":"https://api.github.com/users/vasily-v-ryabov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vasily-v-ryabov/subscriptions","organizations_url":"https://api.github.com/users/vasily-v-ryabov/orgs","repos_url":"https://api.github.com/users/vasily-v-ryabov/repos","events_url":"https://api.github.com/users/vasily-v-ryabov/events{/privacy}","received_events_url":"https://api.github.com/users/vasily-v-ryabov/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T13:08:58Z","updated_at":"2018-03-26T13:08:58Z","author_association":"CONTRIBUTOR","body":"Hi @limonides when you use `connect(...)`, please make sure the script is running as Administrator. We're working to add meaningful warnings.\r\n\r\nBy the way, why not just `Application().start(\"C:\\\\tmp\\\\file.exe\")` ?\r\n\r\nOne more question: are you running this in Remote Desktop session? If yes, is RDP window minimized?"}}
{"actor":{"display_login":"vasily-v-ryabov"}}