Imranimi Posted February 6, 2019 Share Posted February 6, 2019 Bundle of Thanks to Autoit Help-Forum as it had helped me to create my script from scratch since last three weeks (i am fresher to Autoit Scripting). I had shared the screenshot of website, i am using TAB key to switch to product-name and open new tab to copy my specific data after closing that tab when i came back to this shared-screen, i use TAB key to switch to another product (3 TABS are working fine) but in some cases 2 or 3 tabs are required to switch to product-name (hypertext). I need expert suggestion to read or detect the hypertext & press my required key. (Kindly note that href values are changing from product to product). I tried with text-color but it is also not helpful. Internet Explorer or Chrome both acceptable, i need to figure the solution. Thanks again. Link to comment Share on other sites More sharing options...
Nine Posted February 6, 2019 Share Posted February 6, 2019 I would probably use _IETagNameGetCollection ($oIE, "a"). Then for each tag, get the innertext. Look help file, and example of the function. Imranimi 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
alienclone Posted February 7, 2019 Share Posted February 7, 2019 _IEClickLinkByText() If @error Then MsgBox(262192, "", @ComputerName & " slaps " & @UserName & " around a bit with a large trout!") EndIf "Yeah yeah yeah patience, how long will that take?" -Ed Gruberman REAL search results | SciTE4AutoIt3 Editor Full Version Link to comment Share on other sites More sharing options...
Imranimi Posted February 7, 2019 Author Share Posted February 7, 2019 @Nine Thanks for your prompt reply but can you help me with code (if it is possible), i am fresher to scripting, Regards Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 7, 2019 Share Posted February 7, 2019 @Imranimi If you open the Help file or look at the _IELinkGetCollection() on the Internet, you'll see how to use that function step-by-step. Just loop through the collection and click on the link when you've found what you're looking for Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Imranimi Posted February 7, 2019 Author Share Posted February 7, 2019 13 hours ago, Nine said: I would probably use _IETagNameGetCollection ($oIE, "a"). Then for each tag, get the innertext. Look help file, and example of the function. can you help to create my code to my shared website, kindly help as from autoit-help is giving only message-box for the typertext Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 7, 2019 Share Posted February 7, 2019 @Imranimi If you llok at _IELinkGetCollection(), you'll see that you just need to put an If statement, with _IEAction() Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Imranimi Posted February 7, 2019 Author Share Posted February 7, 2019 @FrancescoDiMuro, thanks for reply but i really need the code for loop, please (i am a new bee to Autoit) Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 7, 2019 Share Posted February 7, 2019 (edited) @Imranimi We can't do anything for you because: 1) we can't reproduce the automation of your script, since you didn't post your website; 2) you already have everything you need; just adapt the code to your needs; 3) this is not a forum where users spoons the code for you, as it is stated in the Forum Etiquette Edited February 7, 2019 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Imranimi Posted February 7, 2019 Author Share Posted February 7, 2019 @FrancescoDiMuro Thanks for your bold response, i had read all the rules before asking for help but i noticed from the history of this forum that people are helping with specific code also & as i mentioned earlier my level in Autoit & code mentioned in Autoit-help didn't helps me that how could i use _IETagNameGetCollection ($oIE, "a") or _IEClickLinkByText() . I am little bit confused & that's why i raised my first ever request after tired of doing every effort from my end. Thanks Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 7, 2019 Share Posted February 7, 2019 2 minutes ago, Imranimi said: after tired of doing every effort from my end. Show us what you tried at least Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Imranimi Posted February 7, 2019 Author Share Posted February 7, 2019 _IELinkClickByText or _IELinkClickByIndex or _IETagNameGetCollection ...... ? help me with this & how Link to comment Share on other sites More sharing options...
Imranimi Posted February 7, 2019 Author Share Posted February 7, 2019 If PixelGetColor = 0xEEEEEE Then Sleep(1500) ;Hot-Key to Mouse Right-Click from Keyboard Send("+{F10}") Sleep(1500) ; Scroll down 1 time Send("{down 1}") ; select the option Sleep(1500) Send("{Enter}") Else Sleep(1500) Send("{TAB}") Sleep(1000) ;Hot-Key to Mouse Right-Click from Keyboard Send("+{F10}") Sleep(1000) ; Scroll down 1 time Send("{down 1}") ; select the option Sleep(1000) Send("{Enter}") EndIf Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 7, 2019 Share Posted February 7, 2019 @Imranimi Where is the code when you TRY to use _IE* functions? Just copy-paste the code; it is there for you Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Imranimi Posted February 7, 2019 Author Share Posted February 7, 2019 The above code is for Chrome which i used previously but for IE, i am trying to create script in IE. as i mentioned in my first post that text-color didn't worked for me then i started my code for IE (i came to know that script functions are much more easier for IE) Link to comment Share on other sites More sharing options...
Imranimi Posted February 7, 2019 Author Share Posted February 7, 2019 I think you are making joke of me dear, as i mentioned many times that i am new to Autoit & i totally dn't know about IE functions, If you want to help then please go ahead, Thanks for reply Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 7, 2019 Share Posted February 7, 2019 (edited) @Imranimi I am not taking joke of you, but you are not showing any effort you did put in using what three different users are suggesting you since you started this thread, so... The Help file is full of commented samples... What would you gain to have something that you don't understand (and don't want to understand)? Nothing. What you're asking for hours, IS ALREADY in the Help file, but you are too lazy to copy-paste some code. Good luck with your script Edited February 7, 2019 by FrancescoDiMuro Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Imranimi Posted February 7, 2019 Author Share Posted February 7, 2019 @FrancescoDiMuro, Thanks for helpful reply & comments about me & Please avoid spoiling time for both if you dn't know how to deal with this thread. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 7, 2019 Developers Share Posted February 7, 2019 OK, Kindergarten Cop is going to interfere here: @FrancescoDiMuro , Please stop posting when you don't get the answers to your queries instead of this line of answers as it leads nowhere! @Imranimi , You have elected to be vague so it is somewhat logica you get these questions. When you are really serious and you want serious help, YOU will have to post something that demonstrates your issue so people can actually help. Reporting posts isn't going to get you anywhere when these responses are somewhat self inflicted. I hope I made myself clear as the next time you both will get some time on the naughty spot! Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted February 7, 2019 Share Posted February 7, 2019 2 minutes ago, Jos said: Please stop posting when you don't get the answers to your queries instead of this line of answers as it leads nowhere! Yes Jos, I sometimes forget that people are lazy and are blind, but the fisherman keep saying "Try to show him the right way to learn something instead of keep asking for some code ffs". Next time I'll dgaf Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette 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