{"action":"created","issue":{"url":"https://api.github.com/repos/BlueM/cliclick/issues/15","labels_url":"https://api.github.com/repos/BlueM/cliclick/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/BlueM/cliclick/issues/15/comments","events_url":"https://api.github.com/repos/BlueM/cliclick/issues/15/events","html_url":"https://github.com/BlueM/cliclick/issues/15","id":63844232,"number":15,"title":"using drag when blocked by 'other' window","user":{"login":"driven","id":227987,"avatar_url":"https://avatars.githubusercontent.com/u/227987?v=3","gravatar_id":"","url":"https://api.github.com/users/driven","html_url":"https://github.com/driven","followers_url":"https://api.github.com/users/driven/followers","following_url":"https://api.github.com/users/driven/following{/other_user}","gists_url":"https://api.github.com/users/driven/gists{/gist_id}","starred_url":"https://api.github.com/users/driven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driven/subscriptions","organizations_url":"https://api.github.com/users/driven/orgs","repos_url":"https://api.github.com/users/driven/repos","events_url":"https://api.github.com/users/driven/events{/privacy}","received_events_url":"https://api.github.com/users/driven/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BlueM/cliclick/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-23T21:59:43Z","updated_at":"2015-03-24T12:12:05Z","closed_at":null,"body":"hi, great utility btw...\r\nI'm using it inside app via an embedded ruby api.\r\nI can get a click position from both ruby and cliclick to work out the offset factor to reliably find the window edge for a window drag resize...\r\nthat all works, however I can't work out a edge test to ensure I'm not being masked...\r\nI was wondering if 'The resize-left-and-right cursor (resizeLeftRightCursor)' could be tested for and the dd: x,y target modified until true... \r\ne.g. safe = safe + 10 if not left_right_cursor\r\n drag = %Q[dd:#{@edg},#{safe} du:#{sq},+0]\r\n\r\nso I guess it's a 'get cursor' function I'm after.  e.g. cliclick gc:#{@edg},#{safe}\r\nnot convinced i'm making sense, but thought I'd ask...\r\njohn"},"comment":{"url":"https://api.github.com/repos/BlueM/cliclick/issues/comments/85472298","html_url":"https://github.com/BlueM/cliclick/issues/15#issuecomment-85472298","issue_url":"https://api.github.com/repos/BlueM/cliclick/issues/15","id":85472298,"user":{"login":"driven","id":227987,"avatar_url":"https://avatars.githubusercontent.com/u/227987?v=3","gravatar_id":"","url":"https://api.github.com/users/driven","html_url":"https://github.com/driven","followers_url":"https://api.github.com/users/driven/followers","following_url":"https://api.github.com/users/driven/following{/other_user}","gists_url":"https://api.github.com/users/driven/gists{/gist_id}","starred_url":"https://api.github.com/users/driven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/driven/subscriptions","organizations_url":"https://api.github.com/users/driven/orgs","repos_url":"https://api.github.com/users/driven/repos","events_url":"https://api.github.com/users/driven/events{/privacy}","received_events_url":"https://api.github.com/users/driven/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T12:12:05Z","updated_at":"2015-03-24T12:12:05Z","body":"sorry about the ruby...\r\nI was originally looking for cursor detector code that I could call after calculating the target x,y.\r\nAs I still would need cliclick to move the mouse to trigger any cursor event, I thought it may be better if self contained...\r\nI tried to write my thinking as a  cliclick command example.          \r\n ` gc[:x,y,a,b,str]   GET CURSOR will move the mouse to the point with the given coordinates\r\n          and query cursor type given in the string.\r\n          Example: “gc:12,34,-0,+5,resizeLeftRightCursor” will move the mouse to the \r\n          point with x coordinate 12 and y coordinate 34 and returns true if cursor matches\r\n          string, else it will move the mouse using values given in a,b and re-test.\r\n          If a match is not found at any position return returns false.`\r\nAS a bonus, I think having it as part of cliclick would make it possible to avoid dragging none edges or clicking misplaced buttons when automating GUI testing.\r\nthanks for your reply\r\njohn"}}