Home > Software engineering >  That how to move the mouse to the specified hyperlink text?
That how to move the mouse to the specified hyperlink text?

Time:11-16

Mild as follows, move the mouse to the next page, into a hand






Excuse me, how to realize the simulation in the WebBrowser mouse?

CodePudding user response:

Ideas should be wrong, if you really have to leave in accordance with your ideas, you need to solve several problems:
1, that could affect the size of the target page layout, then how do you ensure the reliability of the layout?
2, even if the recognition is the web address you specify, but click target area may not be present in the viewing area, may be in the middle of the scroll bar at the bottom or what position, even sometimes may target web multiple ads or temporary full screen is possible, then how do you ensure that target clickable area must be in the viewing area? How to ensure the stability?
3, this need to simulate the mouse to click, need according to the window display hide status, whether or not covered state and window position to decide whether to grab images, and then through regional signature recognition method is used to identify the area, to identify successful simulation after clicking, let if appear the same graphics features?

All in all, this kind of operation is not can not realize, but poor stability, high maintainability, do not recommend this lane,
Recommend to directly through the URL link address to pull data directly simple, stable and efficient AI is much higher than the graphics,

CodePudding user response:

Just help me move the mouse over the past, the stability of doesn't matter, I have other way

CodePudding user response:

Control the cursor is not very good, but don't move the cursor workarounds,

The "next page" directly to the element set to the current focus, if you want to automatically click, with the click () method:
Document. The getElementById (" blogClick "). The focus ();//the specified ID element is set to the current focus of
Document. The getElementById (" blogClick "). Click ();//click on the specified ID element

CodePudding user response:

There is another way:
All page links, links to the next page out, and then according to these links to generate the corresponding menu item or button, point the button on the form (page 8), webbrowser navigation links to the corresponding (8 pages corresponding link),

CodePudding user response:

I have to move the cursor to a page 2 for a few seconds, click () I use, but it is not no, do not settle

CodePudding user response:

I have to move the cursor to a page 2 for a few seconds, click () I use, but it is not no, do not settle

CodePudding user response:

To obtain the position of the element, and then use the mouse to move in the past, look at your website url

CodePudding user response:

 





CodePudding user response:

refer to the eighth floor yizhixx2016 response:
 

  • Related