{"action":"opened","number":203,"pull_request":{"url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/203","id":70631233,"html_url":"https://github.com/pywinauto/pywinauto/pull/203","diff_url":"https://github.com/pywinauto/pywinauto/pull/203.diff","patch_url":"https://github.com/pywinauto/pywinauto/pull/203.patch","issue_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/203","number":203,"state":"open","locked":false,"title":"Add mouse position hook to hooks.py","user":{"login":"ethanhs","id":9504279,"avatar_url":"https://avatars.githubusercontent.com/u/9504279?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanhs","html_url":"https://github.com/ethanhs","followers_url":"https://api.github.com/users/ethanhs/followers","following_url":"https://api.github.com/users/ethanhs/following{/other_user}","gists_url":"https://api.github.com/users/ethanhs/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanhs/subscriptions","organizations_url":"https://api.github.com/users/ethanhs/orgs","repos_url":"https://api.github.com/users/ethanhs/repos","events_url":"https://api.github.com/users/ethanhs/events{/privacy}","received_events_url":"https://api.github.com/users/ethanhs/received_events","type":"User","site_admin":false},"body":"First off, great work by @MaxSamokhvalov on the hooks.py file. I know the example I gave was pretty bad (I wrote it as one of my first projects when I was just learning to program), this is so much better. I may even ~~steal~~ use it in my module if that is okay with you all (just as a stand alone module, for those who don't need all of pywinauto).\r\n\r\nIn this PR I just added the mouse position information, as I had that in my original code, and found it useful. It was easy enough to add so take it if you want the addition. This would allow for checks if the mouse is in a bounding box or if it clicks in said box, etc.\r\n\r\nI also added a little to the example in the file.","created_at":"2016-05-19T03:14:40Z","updated_at":"2016-05-19T03:14:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/203/commits","review_comments_url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/203/comments","review_comment_url":"https://api.github.com/repos/pywinauto/pywinauto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/203/comments","statuses_url":"https://api.github.com/repos/pywinauto/pywinauto/statuses/2bc33391e20dffba070859f13022e8099b8a630b","head":{"label":"ethanhs:UIA","ref":"UIA","sha":"2bc33391e20dffba070859f13022e8099b8a630b","user":{"login":"ethanhs","id":9504279,"avatar_url":"https://avatars.githubusercontent.com/u/9504279?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanhs","html_url":"https://github.com/ethanhs","followers_url":"https://api.github.com/users/ethanhs/followers","following_url":"https://api.github.com/users/ethanhs/following{/other_user}","gists_url":"https://api.github.com/users/ethanhs/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanhs/subscriptions","organizations_url":"https://api.github.com/users/ethanhs/orgs","repos_url":"https://api.github.com/users/ethanhs/repos","events_url":"https://api.github.com/users/ethanhs/events{/privacy}","received_events_url":"https://api.github.com/users/ethanhs/received_events","type":"User","site_admin":false},"repo":{"id":59161981,"name":"pywinauto","full_name":"ethanhs/pywinauto","owner":{"login":"ethanhs","id":9504279,"avatar_url":"https://avatars.githubusercontent.com/u/9504279?v=3","gravatar_id":"","url":"https://api.github.com/users/ethanhs","html_url":"https://github.com/ethanhs","followers_url":"https://api.github.com/users/ethanhs/followers","following_url":"https://api.github.com/users/ethanhs/following{/other_user}","gists_url":"https://api.github.com/users/ethanhs/gists{/gist_id}","starred_url":"https://api.github.com/users/ethanhs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethanhs/subscriptions","organizations_url":"https://api.github.com/users/ethanhs/orgs","repos_url":"https://api.github.com/users/ethanhs/repos","events_url":"https://api.github.com/users/ethanhs/events{/privacy}","received_events_url":"https://api.github.com/users/ethanhs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ethanhs/pywinauto","description":"Windows GUI Automation with Python (64-bit Py3 compatible)","fork":true,"url":"https://api.github.com/repos/ethanhs/pywinauto","forks_url":"https://api.github.com/repos/ethanhs/pywinauto/forks","keys_url":"https://api.github.com/repos/ethanhs/pywinauto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethanhs/pywinauto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethanhs/pywinauto/teams","hooks_url":"https://api.github.com/repos/ethanhs/pywinauto/hooks","issue_events_url":"https://api.github.com/repos/ethanhs/pywinauto/issues/events{/number}","events_url":"https://api.github.com/repos/ethanhs/pywinauto/events","assignees_url":"https://api.github.com/repos/ethanhs/pywinauto/assignees{/user}","branches_url":"https://api.github.com/repos/ethanhs/pywinauto/branches{/branch}","tags_url":"https://api.github.com/repos/ethanhs/pywinauto/tags","blobs_url":"https://api.github.com/repos/ethanhs/pywinauto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethanhs/pywinauto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethanhs/pywinauto/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethanhs/pywinauto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethanhs/pywinauto/statuses/{sha}","languages_url":"https://api.github.com/repos/ethanhs/pywinauto/languages","stargazers_url":"https://api.github.com/repos/ethanhs/pywinauto/stargazers","contributors_url":"https://api.github.com/repos/ethanhs/pywinauto/contributors","subscribers_url":"https://api.github.com/repos/ethanhs/pywinauto/subscribers","subscription_url":"https://api.github.com/repos/ethanhs/pywinauto/subscription","commits_url":"https://api.github.com/repos/ethanhs/pywinauto/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethanhs/pywinauto/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethanhs/pywinauto/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethanhs/pywinauto/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethanhs/pywinauto/contents/{+path}","compare_url":"https://api.github.com/repos/ethanhs/pywinauto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethanhs/pywinauto/merges","archive_url":"https://api.github.com/repos/ethanhs/pywinauto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethanhs/pywinauto/downloads","issues_url":"https://api.github.com/repos/ethanhs/pywinauto/issues{/number}","pulls_url":"https://api.github.com/repos/ethanhs/pywinauto/pulls{/number}","milestones_url":"https://api.github.com/repos/ethanhs/pywinauto/milestones{/number}","notifications_url":"https://api.github.com/repos/ethanhs/pywinauto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethanhs/pywinauto/labels{/name}","releases_url":"https://api.github.com/repos/ethanhs/pywinauto/releases{/id}","deployments_url":"https://api.github.com/repos/ethanhs/pywinauto/deployments","created_at":"2016-05-19T00:53:47Z","updated_at":"2016-05-19T00:53:48Z","pushed_at":"2016-05-19T01:04:58Z","git_url":"git://github.com/ethanhs/pywinauto.git","ssh_url":"git@github.com:ethanhs/pywinauto.git","clone_url":"https://github.com/ethanhs/pywinauto.git","svn_url":"https://github.com/ethanhs/pywinauto","homepage":"http://pywinauto.github.io/","size":20660,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pywinauto:UIA","ref":"UIA","sha":"226108bbd548438b5eda2d4a5d13f42f78982615","user":{"login":"pywinauto","id":12541065,"avatar_url":"https://avatars.githubusercontent.com/u/12541065?v=3","gravatar_id":"","url":"https://api.github.com/users/pywinauto","html_url":"https://github.com/pywinauto","followers_url":"https://api.github.com/users/pywinauto/followers","following_url":"https://api.github.com/users/pywinauto/following{/other_user}","gists_url":"https://api.github.com/users/pywinauto/gists{/gist_id}","starred_url":"https://api.github.com/users/pywinauto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pywinauto/subscriptions","organizations_url":"https://api.github.com/users/pywinauto/orgs","repos_url":"https://api.github.com/users/pywinauto/repos","events_url":"https://api.github.com/users/pywinauto/events{/privacy}","received_events_url":"https://api.github.com/users/pywinauto/received_events","type":"Organization","site_admin":false},"repo":{"id":36223210,"name":"pywinauto","full_name":"pywinauto/pywinauto","owner":{"login":"pywinauto","id":12541065,"avatar_url":"https://avatars.githubusercontent.com/u/12541065?v=3","gravatar_id":"","url":"https://api.github.com/users/pywinauto","html_url":"https://github.com/pywinauto","followers_url":"https://api.github.com/users/pywinauto/followers","following_url":"https://api.github.com/users/pywinauto/following{/other_user}","gists_url":"https://api.github.com/users/pywinauto/gists{/gist_id}","starred_url":"https://api.github.com/users/pywinauto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pywinauto/subscriptions","organizations_url":"https://api.github.com/users/pywinauto/orgs","repos_url":"https://api.github.com/users/pywinauto/repos","events_url":"https://api.github.com/users/pywinauto/events{/privacy}","received_events_url":"https://api.github.com/users/pywinauto/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pywinauto/pywinauto","description":"Windows GUI Automation with Python (64-bit Py3 compatible)","fork":false,"url":"https://api.github.com/repos/pywinauto/pywinauto","forks_url":"https://api.github.com/repos/pywinauto/pywinauto/forks","keys_url":"https://api.github.com/repos/pywinauto/pywinauto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pywinauto/pywinauto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pywinauto/pywinauto/teams","hooks_url":"https://api.github.com/repos/pywinauto/pywinauto/hooks","issue_events_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/events{/number}","events_url":"https://api.github.com/repos/pywinauto/pywinauto/events","assignees_url":"https://api.github.com/repos/pywinauto/pywinauto/assignees{/user}","branches_url":"https://api.github.com/repos/pywinauto/pywinauto/branches{/branch}","tags_url":"https://api.github.com/repos/pywinauto/pywinauto/tags","blobs_url":"https://api.github.com/repos/pywinauto/pywinauto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pywinauto/pywinauto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pywinauto/pywinauto/git/refs{/sha}","trees_url":"https://api.github.com/repos/pywinauto/pywinauto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pywinauto/pywinauto/statuses/{sha}","languages_url":"https://api.github.com/repos/pywinauto/pywinauto/languages","stargazers_url":"https://api.github.com/repos/pywinauto/pywinauto/stargazers","contributors_url":"https://api.github.com/repos/pywinauto/pywinauto/contributors","subscribers_url":"https://api.github.com/repos/pywinauto/pywinauto/subscribers","subscription_url":"https://api.github.com/repos/pywinauto/pywinauto/subscription","commits_url":"https://api.github.com/repos/pywinauto/pywinauto/commits{/sha}","git_commits_url":"https://api.github.com/repos/pywinauto/pywinauto/git/commits{/sha}","comments_url":"https://api.github.com/repos/pywinauto/pywinauto/comments{/number}","issue_comment_url":"https://api.github.com/repos/pywinauto/pywinauto/issues/comments{/number}","contents_url":"https://api.github.com/repos/pywinauto/pywinauto/contents/{+path}","compare_url":"https://api.github.com/repos/pywinauto/pywinauto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pywinauto/pywinauto/merges","archive_url":"https://api.github.com/repos/pywinauto/pywinauto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pywinauto/pywinauto/downloads","issues_url":"https://api.github.com/repos/pywinauto/pywinauto/issues{/number}","pulls_url":"https://api.github.com/repos/pywinauto/pywinauto/pulls{/number}","milestones_url":"https://api.github.com/repos/pywinauto/pywinauto/milestones{/number}","notifications_url":"https://api.github.com/repos/pywinauto/pywinauto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pywinauto/pywinauto/labels{/name}","releases_url":"https://api.github.com/repos/pywinauto/pywinauto/releases{/id}","deployments_url":"https://api.github.com/repos/pywinauto/pywinauto/deployments","created_at":"2015-05-25T09:50:40Z","updated_at":"2016-05-18T06:59:59Z","pushed_at":"2016-05-14T19:35:27Z","git_url":"git://github.com/pywinauto/pywinauto.git","ssh_url":"git@github.com:pywinauto/pywinauto.git","clone_url":"https://github.com/pywinauto/pywinauto.git","svn_url":"https://github.com/pywinauto/pywinauto","homepage":"http://pywinauto.github.io/","size":21851,"stargazers_count":177,"watchers_count":177,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":70,"mirror_url":null,"open_issues_count":40,"forks":70,"open_issues":40,"watchers":177,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/203"},"html":{"href":"https://github.com/pywinauto/pywinauto/pull/203"},"issue":{"href":"https://api.github.com/repos/pywinauto/pywinauto/issues/203"},"comments":{"href":"https://api.github.com/repos/pywinauto/pywinauto/issues/203/comments"},"review_comments":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/203/comments"},"review_comment":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pywinauto/pywinauto/pulls/203/commits"},"statuses":{"href":"https://api.github.com/repos/pywinauto/pywinauto/statuses/2bc33391e20dffba070859f13022e8099b8a630b"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":3,"changed_files":1}}