saunnyolo

method to targeting IE link?

14 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



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 ;)


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

@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.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

What exactly are you trying to accomplish? better incite would be helpful.

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

 need method to auto click on the link for a target without ID/ TITLE /  TEXT

 

 

 

 

 

 

 

c1.png

Edited by saunnyolo

Share this post


Link to post
Share on other sites

need method to auto click without ID/text/title.

C2.png

Share this post


Link to post
Share on other sites

how do  _IEaction work?

or other method?

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

i have read but its confused , 

could anyone post a script of how its work?

 

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

Local $oIE = _IE_Example("form")    
Local $oSubmit = _IEGetObjByName($oIE, "submitExample")
_IEAction($oSubmit, "click")
_IELoadWait($oIE)

 

what do those in red "red texT" mean?

do "form" mean the page URL?

"submitExample" mean button to click ?

anyone have some example ? thank

 

c1.png

Edited by saunnyolo

Share this post


Link to post
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

Share this post


Link to post
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