astrax Posted May 13, 2009 Share Posted May 13, 2009 (edited) Hi, I'm trying to write a script that searches for a specific key word in IE window or Firefox window. If key word key found then pop up box stating so. Is it possible to do so? Edited May 13, 2009 by astrax Link to comment Share on other sites More sharing options...
oMBRa Posted May 13, 2009 Share Posted May 13, 2009 u can get the source of the page, then check that word Link to comment Share on other sites More sharing options...
astrax Posted May 13, 2009 Author Share Posted May 13, 2009 u can get the source of the page, then check that wordNo, i'd have a GUI with a button. When i click the button it would check active IE/Firefox window and return with word found or not. Link to comment Share on other sites More sharing options...
astrax Posted May 13, 2009 Author Share Posted May 13, 2009 (edited) No, i'd have a GUI with a button. When i click the button it would check active IE/Firefox window and return with word found or not. Something like this but it's not in a working state. this is the idea #include <GuiConstantsEx.au3> #include <IE.au3> Global $GUI, $button $GUI = GUICreate("test" , 100, 50, -1, -1) $button = GUICtrlCreateButton("check", 5, 10, 50) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit Case $button WinActivate("Google") WinSetOnTop("Google", "", 1) If _IESearch("Over") Then ;search for the word 'Over' in google IE window. Obviously it doesn't work due to _IESearch is not a function MsgBox(0, "Word Over Found") Else MsgBox(0, "Word Over Not Found") EndIf EndSwitch WEnd Edited May 13, 2009 by astrax Link to comment Share on other sites More sharing options...
oMBRa Posted May 13, 2009 Share Posted May 13, 2009 search in the help file for the IE function... btw use _IEAttach to attach to an already existing instance of IE, then use _IEBodyReadText, finally search your word 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