in reply to Perl Web Browser using Gtk2 and WebKit

I have got this excellent code to work without problems and now I'd like to automate moving the mouse cursor over the newly opened browser and also automate clicking... what's the best way to do that (with Perl Gtk2)?
  • Comment on Re: Perl Web Browser using Gtk2 and WebKit

Replies are listed 'Best First'.
Re^2: Perl Web Browser using Gtk2 and WebKit
by zentara (Cardinal) on May 10, 2012 at 10:32 UTC
    Hi, that's a tough one, If you google for Gtk2 Webkit mouse position you get some links to C code ( which you could probably easily convert to Perl), especially WebKitHitTestResult.

    As far as being able to programmably move the mouse position to an arbitrary point in a window, I've not seen it done, your best bet would be to ask this question on the gtk-perl-maillist.

    You might have more success using keys, like tabbing to advance focus to the next clickable link.

    If you find an answer, be sure to post it. :-)


    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh