{"action":"created","issue":{"url":"https://api.github.com/repos/mwinapi/mwinapi/issues/5","repository_url":"https://api.github.com/repos/mwinapi/mwinapi","labels_url":"https://api.github.com/repos/mwinapi/mwinapi/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/mwinapi/mwinapi/issues/5/comments","events_url":"https://api.github.com/repos/mwinapi/mwinapi/issues/5/events","html_url":"https://github.com/mwinapi/mwinapi/issues/5","id":148643395,"number":5,"title":"How can I get TakeHorizontalScrollingScreenshot working","user":{"login":"Lakritzator","id":708125,"avatar_url":"https://avatars.githubusercontent.com/u/708125?v=3","gravatar_id":"","url":"https://api.github.com/users/Lakritzator","html_url":"https://github.com/Lakritzator","followers_url":"https://api.github.com/users/Lakritzator/followers","following_url":"https://api.github.com/users/Lakritzator/following{/other_user}","gists_url":"https://api.github.com/users/Lakritzator/gists{/gist_id}","starred_url":"https://api.github.com/users/Lakritzator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lakritzator/subscriptions","organizations_url":"https://api.github.com/users/Lakritzator/orgs","repos_url":"https://api.github.com/users/Lakritzator/repos","events_url":"https://api.github.com/users/Lakritzator/events{/privacy}","received_events_url":"https://api.github.com/users/Lakritzator/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-15T12:06:32Z","updated_at":"2016-04-15T16:28:45Z","closed_at":"2016-04-15T16:28:45Z","body":"I have made a small project to play around with mwinapi, especially for the scrolling capture.\r\nIt would be nice to have such a feature in Greenshot.\r\n\r\nBut somehow I can't get it working....\r\n\r\nI do get a screenshot, and I do see a single \"scroll\" action on the window I used to test it on.\r\nBefore I start debugging like a maniac, maybe you can give me some hints?\r\n\r\nI used Notepad++ with some text in it, found the window, than found the child with the text, made sure the window is active (actually I didn't find a call for this in SystemWindow??) moved the mouse inside the text area, called the TakeHorizontalScrollingScreenshot with the following call:\r\nScreenshot.TakeHorizontalScrollingScreenshot(scrollPoint, child, null)\r\n\r\nP.S.\r\nWill write contact you via email about some contributions to this repository I might want to make.\r\nAs a Greenshot developer I have a lot of similar code, which is not nice to have double...\r\n(recently moved this code to https://github.com/dapplo/Dapplo.Windows)"},"comment":{"url":"https://api.github.com/repos/mwinapi/mwinapi/issues/comments/210530707","html_url":"https://github.com/mwinapi/mwinapi/issues/5#issuecomment-210530707","issue_url":"https://api.github.com/repos/mwinapi/mwinapi/issues/5","id":210530707,"user":{"login":"schierlm","id":1568931,"avatar_url":"https://avatars.githubusercontent.com/u/1568931?v=3","gravatar_id":"","url":"https://api.github.com/users/schierlm","html_url":"https://github.com/schierlm","followers_url":"https://api.github.com/users/schierlm/followers","following_url":"https://api.github.com/users/schierlm/following{/other_user}","gists_url":"https://api.github.com/users/schierlm/gists{/gist_id}","starred_url":"https://api.github.com/users/schierlm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schierlm/subscriptions","organizations_url":"https://api.github.com/users/schierlm/orgs","repos_url":"https://api.github.com/users/schierlm/repos","events_url":"https://api.github.com/users/schierlm/events{/privacy}","received_events_url":"https://api.github.com/users/schierlm/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T16:28:45Z","updated_at":"2016-04-15T16:28:45Z","body":"Two hints:\r\n\r\n1) Give it some time. I have seen that analyzing the screen takes 30 seconds or so. Probably the algorithm can be optimized quite a lot (pull requests welcome!), it was always \"good enough for my needs\"\r\n\r\n2) The project https://github.com/mwinapi/mwinapi/tree/master/Tools/ScreenShooter uses all the features in the Screenshot class (a binary of it is also available in the ManagedWinapiTools package on SourceForge in case you do not want to compile it yourself), and can be used both as a reference how to use it, as well as testing whether this class is able to scan the window. I tested it with Notepad++ quickly, and it worked. [On the other hand, if I needed a \"screenshot\" of some Notepad++ window, I'd use Notepad++ \"Export as HTML\" plugin which is faster and creates HTML instead of an image.]\r\n\r\nI will separately reply to the email you sent me."}}