saunnyolo Posted December 10, 2015 Share Posted December 10, 2015 (edited) hi i am new, need some advice and help1)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 = 0x0800winwait("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 December 10, 2015 by saunnyolo Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 10, 2015 Moderators Share Posted December 10, 2015 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 More sharing options...
saunnyolo Posted December 10, 2015 Author Share Posted December 10, 2015 (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 ? thankits a bot to auto click link and send text to webside Edited December 10, 2015 by saunnyolo Link to comment Share on other sites More sharing options...
JohnOne Posted December 10, 2015 Share Posted December 10, 2015 Both those snippets are exactly the same, how can one work and the other not, for the same window? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted December 10, 2015 Share Posted December 10, 2015 Perhaps Opt("WinTitleMatchMode", 2) will help, if I guessed your question. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted December 10, 2015 Moderators Share Posted December 10, 2015 @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 More sharing options...
aa2zz6 Posted December 10, 2015 Share Posted December 10, 2015 What exactly are you trying to accomplish? better incite would be helpful. Link to comment Share on other sites More sharing options...
saunnyolo Posted December 10, 2015 Author Share Posted December 10, 2015 (edited) need method to auto click on the link for a target without ID/ TITLE / TEXT Edited December 10, 2015 by saunnyolo Link to comment Share on other sites More sharing options...
saunnyolo Posted December 10, 2015 Author Share Posted December 10, 2015 need method to auto click without ID/text/title. Link to comment Share on other sites More sharing options...
saunnyolo Posted December 10, 2015 Author Share Posted December 10, 2015 how do _IEaction work?or other method? Link to comment Share on other sites More sharing options...
aa2zz6 Posted December 10, 2015 Share Posted December 10, 2015 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 More sharing options...
saunnyolo Posted December 11, 2015 Author Share Posted December 11, 2015 i have read but its confused , could anyone post a script of how its work? Link to comment Share on other sites More sharing options...
saunnyolo Posted December 11, 2015 Author Share Posted December 11, 2015 (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 Edited December 11, 2015 by saunnyolo Link to comment Share on other sites More sharing options...
saunnyolo Posted December 11, 2015 Author Share Posted December 11, 2015 <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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now