Jump to content

Search the Community

Showing results for tags 'hyperlink website'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Location


WWW


Interests

Found 1 result

  1. The following code open a website, wait for 10 seconds to make sure that the website is loaded. It then scrolls down 5 times and then click a specific location on the screen where a link is situated. There are two problems I want to remove. Problem 1: It is working but it is not a good approach. I know AutoIt provides a facility where a user can search for the text to click it. For example <a href="example.com"> click here to go to example.com </a> then we can ask autoit to click the link "click here to go to example.com" on loading the page. Problem 2: Instead of waiting for specific time e.g. 10 seconds, it would be better to perform the click action after the page is loaded fully. Global $MOUSE_WHEEL_DOWN1 = "Down" ShellExecute("chrome.exe", "https://example.com","","") ; To open the example.com page in google chrome. WinWait('example - Google Chrome') sleep(10000) ; wait for ten seconds to make sure the page is loaded WinActivate('example - Google Chrome') WinSetState("[ACTIVE]", "", @SW_MAXIMIZE) ; Maximize the window to make sure the clicking place is right each time sleep(1000) ; wait for maximize window MouseWheel($MOUSE_WHEEL_DOWN1, 5) ; scroll down the page because the link is at the bottom of the page sleep(1000) MouseClick('primary', 1295,312) ; click the text of the link to open the next page. e.g. "click here to go to next page"
×
×
  • Create New...