Jump to content

method to targeting IE link?


 Share

Recommended Posts

hi i am new, need some advice and help

1)could someone explain how to create script that will auto click on targeting IE link ? most of the time there no ID or title are random.. 

please assist .

 

$oIE = _IECreate("https://carousell.com/search/products?query=samsung note3&sort=popular&price_start=190&price_end=330")

AutoItSetOption('MouseCoordMode',2)

Const $navOpenInNewTab = 0x0800


winwait("Search results for")
WinActivate("Search results for")
MouseClick ('primary', 157, 398, 1, 0)
sleep(1000)

winwait("Search results for")
WinActivate("Search results for")
MouseClick ('primary', 157, 398, 1, 0)
sleep(1000)

 

 

first winwait method work fine, but 2nd search title are random and winwait could not find title and program jam.
 

its a IE link from website.

 

Edited by saunnyolo
Link to comment
Share on other sites

  • Moderators

please assist .

@saunnyolo, welcome to the forum. Please describe in more detail what you're trying to do. Is this IE link in a document, on another web page, in an email, etc. A screenshot would be helpful as well. Help us help you ;)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

winwait("Search results for")
WinActivate("Search results for")
MouseClick ('primary', 157, 398, 1, 0)
sleep(1000)

work fine, because title is right,

but 

 

winwait("Search results for")
WinActivate("Search results for")
MouseClick ('primary', 157, 398, 1, 0)
sleep(1000)

stopped because title will be random new

 

is there any method to ensure program will click ? thank

its a bot to auto click link and send text to webside

Edited by saunnyolo
Link to comment
Share on other sites

  • Moderators

@saunnyolo, still feel like we're pulling teeth here. Give us an example of the title differences between one and the other, or a screenshot of the window, please.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

The _IEaction would be the route to go if you want to automate tasks to click on. I would suggest reading the _IEaction help file. I'll post the link below, but I encourage you to read and try to create something. If you run into any problems, feel free to post the code on here and we can help you.

https://www.autoitscript.com/autoit3/docs/libfunctions/_IEAction.htm

Link to comment
Share on other sites

<a class="pdt-buy-box-chat btn btn-secondary btn-cta btn-block" href="/inbox/new/37099681/" data-reactid=".1fkkejxbim8.2.1:0.1.0.1.0.0.0.1.0.0"><span data-reactid=".1fkkejxbim8.2.1:0.1.0.1.0.0.0.1.0.0.0">Chat to Buy</span></a>

 

this is the link... any method to auto click it? if there is no title / id / text

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...