Jump to content

search for key word on IE or FireFox?


Recommended Posts

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

Link to comment
Share on other sites

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
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...