Yagel Posted January 13, 2009 Share Posted January 13, 2009 (edited) 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 January 13, 2009 by Yagel Link to comment Share on other sites More sharing options...
Glyph Posted January 13, 2009 Share Posted January 13, 2009 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 More sharing options...
Yagel Posted January 13, 2009 Author Share Posted January 13, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now