Jump to content
Sign in to follow this  
Yagel

ControlGetText Problem...

Recommended Posts

Yagel

Ummm, i want to make a "Site Filter" , what i mean is if the word "Blah" is found on Mozilla Firefox , or any other window, i want it to close it..

So, this is what i use: ( While it doesn't work.. )

While 1
    $text = ControlGetText ( "", "Blah", "MozillaUIWindowClass" )
    if $text = "Blah" then
    ProcessClose("firefox.exe")
    endif
WEnd

I added the While 1 , Cuz without it the program runs for a second and closes..

Edited by Yagel

Share this post


Link to post
Share on other sites
Glyph

One way, is to grab text form the url box. (polling whith a while 1)

Then, inetgetsource, and search for the text.

By no means is this the best way, or even a good way. (But it is possible)

And, you should add a sleep to your loop.


tolle indicium

Share this post


Link to post
Share on other sites
Yagel

Well... i tried a lot of things and still can't get it to work.. so i guess I'll pass.. i think there is no way to do it.. even if there is.. its too complicated for me... so if anyone can try do it himself and see if there is a way.. please tell me, thanks a lot from advance!

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  

×