Sign in to follow this  
Followers 0
astrax

search for key word on IE or FireFox?

5 posts in this topic

#1 ·  Posted (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 by astrax

Share this post


Link to post
Share on other sites



u can get the source of the page, then check that word

Share this post


Link to post
Share on other sites

u can get the source of the page, then check that word

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.

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by astrax

Share this post


Link to post
Share on other sites

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

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