Capturing the cursor seems to be very hard on some platforms. On Mac I haven't found a single screenshot utility that can capture the cursor itself. In the builtin Snapshot utility you have to go and pick from a list of cursors which one you want inserted into your image at the cursor position.
I had an even harder time getting a proper screenshot on Linux, where something made me get either my application popupmenu WITHOUT the application (I got the menu itself on top of the login screen (???) or the application itself without the menu. I tried 3-4 different tools that I found out about by googling linux screenshots, and yes including the builtin gnome-screenshot utility. The way I finally resolved this was to run Ubuntu in VirtualBox on a Mac and then capturing the Linux window using the mac desktop capture utility. Not saying that I don't think Robot should work better, just saying this seems to be something very difficult to do. -- Tor On Jun 2, 2:19 pm, Casper Bang <[email protected]> wrote: > > Well, it's that the computer vision library used (OpenCV > > -http://opencv.willowgarage.com/wiki/) is made in native code - I don't > > see how we can blame Java for the fact that not every single developer > > on earth use it :-) > > Those who just wants to run the program really doesn't care what it's > made in, and certainly can't be expected to go build a native > library. > > My comment was just an observation that the majority of the few > interesting Java desktop applications in existence needs this kind of > native binding. It's no wonder desktop Java failed when this is so > often the case. Sun made is (purposely?) really hard to inter-operate > while at the same time often choosing a too limited common > denominator. I.e. try using java.awt.Robot to capture the screen, it's > very slow and can't capture the cursor. > > Anyway, that's a distraction from the topic. Bottom-line, the Sikuli > Linux bundle doesn't seem to work. -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
