Results 1 to 2 of 2

Thread: Simulating mouse clicks

  1. #1
    Join Date
    Jul 2017
    Posts
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Simulating mouse clicks

    Good morning.
    It's been a while since I started using Qt5 and C ++ for a program that will have to run on a Linux platform. I have a problem I do not know how to solve and ask for help.
    My program will only have to engage the left side of the screen, while on the right side a web page will be active to insert lottery games.
    When in the left half I click on a particular button, the cursor will have to be placed on the web page and click on a particular area that serves to indicate the number to play the lot. In this way I would like to automate the insertion of some hundreds of bets that my program will produce.
    I was able to move the cursor to the web page, but I can not play the mouse click on that location. Is there anyone who can help me? Many thanks.

  2. #2
    Join Date
    Oct 2012
    Posts
    132
    Thanks
    10
    Thanked 21 Times in 21 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: Simulating mouse clicks

    Since it is a web page, using Qt WebEngine or Qt WebKit would make sense. Both allow to inject JavaScript so you can manipulate the web page easily. The task also sounds like something for PhantomJS or Chromedriver.

Similar Threads

  1. Replies: 3
    Last Post: 22nd February 2013, 19:56
  2. Replies: 3
    Last Post: 12th May 2010, 13:11
  3. Generating Mouse Clicks
    By Ebonair in forum Qt Programming
    Replies: 2
    Last Post: 4th July 2009, 18:20
  4. How to handle double clicks with mouse?
    By Morea in forum Qt Programming
    Replies: 1
    Last Post: 14th January 2007, 12:01
  5. Detecting mouse clicks outside of widget
    By init2null in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2006, 19:16

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.