Sign in to follow this  
Followers 0
supo

Is it possible to get a text written on an internet page?

14 posts in this topic

Hi everyone

I already made some scripts but now i'm blocked in my new project

Is it possible to see if a text is written in an internet page ?

I used autoit window info, but it wont get any text written on the page :s

someone can help me with that ?

Thanks

Share this post


Link to post
Share on other sites



hi,

i've done something same as you, i think it's ok for most case ... but can you post the text part here or the HTML source code? it's much easier to help


[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

Hi

Thanks for fast reply

In fact in my website, i use a kind of queue ( php ), it's updated every second, and when the word " Needs " appears in one of the entries of the queue, want to do something like click on it, or maybe play a sound on my computer, just something simple.

let me know if you can help

Thanks

Share this post


Link to post
Share on other sites

are there anyting similar like in this post ?

http://www.autoitscript.com/forum/index.php?showtopic=72301


[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

I Think it's similar yes

so if i understand, your script is reading the source of the page right ?

Then what i would need is :

Search if we have : selected>Needs

If yes, click on it.

Possible ?

Also it only works with IE ?

Share this post


Link to post
Share on other sites

This only works in IE, yes

and can you find some thing to "hook" the wanting text, like the work "MB()" on my script ?


[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

This only works in IE, yes

and can you find some thing to "hook" the wanting text, like the work "MB()" on my script ?

Hmm i don't understand :/

As i said when the word "Needs" is on the page, the script must do something ( click on the word or play a sound, i don't know, just a simple thing :) )

Thanks

Share this post


Link to post
Share on other sites

if $a=WinGetText("IE","Needs") then
soundplay()
endif


[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

Thanks for this, i tested but it's not working

I made the script, i tested it on a page and it plays the sounds even when the word needs is not in the page/source lol :)

Share this post


Link to post
Share on other sites

#include <IE.au3>
$oIE = _IE_Example ("basic") ; change this to the url
$sText = _IEBodyReadText ($oIE)
If stringinstr($stext,"TEXT TO SEARCH FOR") Then
msgbox(0,"","OOH  FOUND THE TEXT")
Endif

if your trying to search for text on an already existent IE window, have a look in the helpfile for _IeAttach(). IE gives off notifications when it refreshes/navigates. You can hook these and then read the body after pages finish loading.

Share this post


Link to post
Share on other sites

Thanks for this, i tested but it's not working

I made the script, i tested it on a page and it plays the sounds even when the word needs is not in the page/source lol :)

:) that's just giving you an idea, not a working code

[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

#include <IE.au3>
$oIE = _IE_Example ("basic") ; change this to the url
$sText = _IEBodyReadText ($oIE)
If stringinstr($stext,"TEXT TO SEARCH FOR") Then
msgbox(0,"","OOH  FOUND THE TEXT")
Endif

if your trying to search for text on an already existent IE window, have a look in the helpfile for _IeAttach(). IE gives off notifications when it refreshes/navigates. You can hook these and then read the body after pages finish loading.

Hi

thanks for this reply and the code

I changed the url where you wrote it but it is not working :s

i wrote :

$oIE = _IE_Example ("Http://xxxxxxxxxxxx") ;

and it's not working :)

what do i need to do please ?

Thanks

Share this post


Link to post
Share on other sites

_IECreat insted of _IE_Example


[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

_IECreat insted of _IE_Example

Right Thanks it seems to be working now :)

Last question , is it possible, instead of having a msgbox when he found the text to click on it ?

( other way than using mousclick(coordonates ) )

Thanks a lot already :)

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