Jump to content
Sign in to follow this  
astrax

search for key word on IE or FireFox?

Recommended Posts

astrax

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
oMBRa

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

Share this post


Link to post
Share on other sites
astrax

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
astrax

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
oMBRa

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.