Sign in to follow this  
Followers 0
gazkin

Scan for text

19 posts in this topic

Dear users,

I am looking for some kind of code that searches for a keyword.

If that keyword has been found, than the script must click on that word.

The problem is, that the keyword will be 3 times on the same page and I want the script to click on the last found keyword.

Anyone knows how?

Share this post


Link to post
Share on other sites



Did you even make an attempt? No1 here is going to help some1 that didn't even ty, give us the code you came up with.


My Scripts,[topic="65986"]AI Example[/topic] ,Capable of Emotion!

Share this post


Link to post
Share on other sites

Did you even make an attempt? No1 here is going to help some1 that didn't even ty, give us the code you came up with.

Think these words are a bit strong for somebody that joined in the last week.

OP, You will have to be clearer in what you want to do because the current description is unclear (for me).


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I been using autoit for 2 years, just never botheredto make a forum acct.


My Scripts,[topic="65986"]AI Example[/topic] ,Capable of Emotion!

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

that`s a useful reply, I will research it and will keep you updated.

De Nederlanders helpen tenminste wat :)

Edited by gazkin

Share this post


Link to post
Share on other sites

Thnx Spud,

But does this only work with internet explorer?

Because I need to run it with Firefox.

Please let me know if there is something like that for firefox

Share this post


Link to post
Share on other sites

Or do i need to pixel search wit ff?

Share this post


Link to post
Share on other sites

Don't think it's possible to be done with Firefox, just use IE... or use someone's else's script browser.

Share this post


Link to post
Share on other sites

Thnx Spud,

But does this only work with internet explorer?

Because I need to run it with Firefox.

Please let me know if there is something like that for firefox

2, _IE will with the default browser, i use TheWorld as my default browser and it seem work well,i think it's the same with FF

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

@d4rk,

I'm using FireFox as default browser, and the function itself gives a clear name, IE = Internet Explorer, only usable with IE. If someone comes up with a FireFox UDF then it might be possible.

Share this post


Link to post
Share on other sites

@d4rk,

I'm using FireFox as default browser, and the function itself gives a clear name, IE = Internet Explorer, only usable with IE. If someone comes up with a FireFox UDF then it might be possible.

Yoh, i've forgotten something .... TW works base on IE

[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

So... it might work off anything that is based of IE right? But FF isn't based off IE :).

Share this post


Link to post
Share on other sites

Do you have to use Firefox? or can you simply download a page and search text in it? You can use something like an XML Http Request. http://en.wikipedia.org/wiki/XMLHttpRequest

I can make some code up if you want an example.

Share this post


Link to post
Share on other sites

I'd just download the page, parse the data for the keywords and open a browser (ff) to the link attached to the last keyword.

Share this post


Link to post
Share on other sites

Well, here is a start:

ConsoleWrite(Get_UTC_Time())

Func Get_UTC_Time()
    Local $sTimeSource = _INetGetSource("http://www.time.gov/timezone.cgi?Eastern/d/-5")
    Local $sBR = StringRegExp($sTimeSource, '(?i)<font size="5" color="white">(.*)<br>', 3)
    Return $sBR[0]
EndFunc

And you can finish what you want by _IEClickLinkByName...

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
Sign in to follow this  
Followers 0