Jump to content

ControlGetText Problem...


Yagel
 Share

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...