Hello everyone
Is there a way to open the new threads with the new replies only in the forum ... ?
I mean to navigate to the forum and open the new threads that is not read or the threads that has new replies in one shot
Thanks advanced for help
Hello everyone
Is there a way to open the new threads with the new replies only in the forum ... ?
I mean to navigate to the forum and open the new threads that is not read or the threads that has new replies in one shot
Thanks advanced for help
< ----- Please click the little star * next to add reputation if my post helps you
Visit Forum : From Here
This is the link to new posts:
https://www.excelforum.com/search.php?searchid=8623056
I don't understand what the problem might be ...
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Thanks a lot for reply
In the link provided
'Sorry - no matches. Please try some different terms.'
The problem is that I want to open all new threads in one shot : each thread in new tab in the broswer..
I don't mind if there is a code to do that ..
OK, well then it would have been sensible to say this in the first place.
Please explain in DETAIL what it is you are trying to do.
OK. I thought it is clear
Generally glad it is clear now
Thanks a lot for sharing
Well, no - it's not clear to me exactly what you want to archive or why, but hey!
Here's my attempt by code
I have commented the desired part .. I want to list in column A , the new threads for me (that have new replies I didn't see)Please Login or Register to view this content.
Hope it is clear now
Any help in this topic please?
Hope to find responses to this topic ..
You want:
Please Login or Register to view this content.
Thanks a lot Mr. Kyle for reply
I already tested that part
But I got type mismatch error (run-time error '13')Please Login or Register to view this content.
That means there aren't any. As far as I can see from your code, you never navigate to the page in your screenshot. The link for that page is:
Please Login or Register to view this content.
I waited till there are new threads for me and retest the code but the same error .. I even replaced my link with the link you provided without opening it and I got the same error. I am using IE 11 and windows 7 32 Bit
Please post your actual code
My code posted at post #7. That's my actual code
That code doesn't have any of mine in it
Do you mean the code after the modifications you guided me
Please Login or Register to view this content.
On which line do you get the error? Bear in mind that there will not be an li within the elements found
I got error at this line
Please Login or Register to view this content.
1. You aren't waiting for the redirect before logging in
2. oHEle shouldn't be declared as HTMLUListElement
You may want to adjust the below as you could end up in an infinite loop should the password be incorrect
Please Login or Register to view this content.
Last edited by Kyle123; 10-09-2018 at 05:34 AM.
Awesome. Thank you very much
That's working great and as expected ..
One last point if possible : How can open each link in new tab in IE?
Ie.navigate2 x.href, 2048&
Though I suggest you don't. It opens them too quickly and you'll get your ip blacklisted
Thanks a lot for suggestion
What 2048& refers to ???! If we make a waiting time between opening the links I think this would solve the IP issue
It’s an enum value for telling ie to open in a new tab
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
Thank you very very much
I have tested the code and it is great ..
I used these two lines
Just one note : when opening the links ..if a thread has more than a page (two pages for example), it opens on the first pagePlease Login or Register to view this content.
What is the trick I can use to open the last page?
Last edited by YasserKhalil; 10-10-2018 at 12:28 AM.
Just one note : when opening the links ..if a thread has more than a page (two pages for example), it opens on the first page
What is the trick I can use to open the last page?
There's no trick, just inspect the source code for the link that takes you to the last post and navigate to that instead of the link extracted above
I couldn't get how to do that. I inspected the source code but didn't know hot to get the code to navigate to the last page
Look at the href of the button that takes you to the last post
Thanks a lot for your patience
I am trying to inspect and try to know how can I solve it but I really don't know
When inspecting a thread of two pages I got two links like that
Untitled.png
But I don't know how to code to deal with the last page or last link
You're looking in the wrong place, to go to the last post, you click the link in the last post column next to the username - this has the link you need
Do you mean like that .. if not please leave a snapshot as I am lost
Untitled.png
No, I don't. See attached
I think I found the part you are talking about
But how can I reach this part ..Can you help me please?
Untitled.png
What have you tried so far?
I am trying to find a clue for how to reach this point but I am lost. I used Google Chrome and copied the XPath
//*[@id="thread_1247090"]/div/dl/dd[2]/a[2]
But I have no idea of how to use XPath ..
I think you need to read up on HTML and the DOM, this will give you a much better idea of how to navigate a page:
Please Login or Register to view this content.
Thank you very much. That works like charm but I really would like to get how did you do that line of code
As for the method offsetParent .. How does it work? And how I can detect the parent of the element?
Untitled.png
There's a lot to learn - it would take an essay to explain it, I can't really explain it to you here. You need to read up on HTML and the DOM
Thank you very much for great help. I will try to read again about DOM
Best and Kind Regards
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks