{"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":1,"created_at":"2015-03-23T21:59:43Z","updated_at":"2015-03-24T06:25:24Z","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/85361518","html_url":"https://github.com/BlueM/cliclick/issues/15#issuecomment-85361518","issue_url":"https://api.github.com/repos/BlueM/cliclick/issues/15","id":85361518,"user":{"login":"BlueM","id":1493457,"avatar_url":"https://avatars.githubusercontent.com/u/1493457?v=3","gravatar_id":"","url":"https://api.github.com/users/BlueM","html_url":"https://github.com/BlueM","followers_url":"https://api.github.com/users/BlueM/followers","following_url":"https://api.github.com/users/BlueM/following{/other_user}","gists_url":"https://api.github.com/users/BlueM/gists{/gist_id}","starred_url":"https://api.github.com/users/BlueM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BlueM/subscriptions","organizations_url":"https://api.github.com/users/BlueM/orgs","repos_url":"https://api.github.com/users/BlueM/repos","events_url":"https://api.github.com/users/BlueM/events{/privacy}","received_events_url":"https://api.github.com/users/BlueM/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T06:25:24Z","updated_at":"2015-03-24T06:25:24Z","body":"The Ruby code is not very helpful in understanding the issue, but (as you write yourself), it basically seems to boil down to getting the cursor type – which is not difficult.\r\nThe question is if it would be sufficient to implement getting the cursor and writing it to STDOUT (so your code can read it and use that information to judge what would be the appropriate action), or if you’d rather expect cliclick to do something like “if the cursor is the resizeLeftRightCursor, click at 10:20, else click at 10:30”."}}