Jump to content

Monitoring the text in the news box.


Recommended Posts

Prompt program, which monitors 1 word in the window Chrome browser - "super", a window title - "test", it need refreshes the window every five minutes, and if the word disappeared, beeps. This should not affect the work of other windows browser.

Link to comment
Share on other sites

  • Moderators

@zxc3 you could not have provided less information if you'd been trying. You have been here long enough to know you need to provide us with a detailed description of what you're trying to accomplish, along with your code (working or not), rather than asking us to first guess at what you're trying to do and then solve it for you.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Thank you for your comment. But I  not worked with scripts long time.
Program instead of text in the window, returns very different information.

For example in the window - https://www.autoitscript.com/autoit3/docs/functions/WinGetText.htm

the program should see the text  in the Chrome browser  " Retrieves the text from a window ",

but only - "Chrome Legacy Window"

Global $Paused
#include <MsgBoxConstants.au3>

HotKeySet("{F10}", "Terminate")
HotKeySet("{F8}", "Example")

;;;; Body of program would go here ;;;;
While 1
    Sleep(10000000)
WEnd
;;;;;;;;


Func Terminate()
    Exit 0
EndFunc

Func Example()
    ; Retrieve the window text of the active window.
    Local $sText = WinGetText("[ACTIVE]")

    ; Display the window text.
    MsgBox($MB_SYSTEMMODAL, "", $sText)
EndFunc   ;==>Example

 

 

 

09.06.png

2.au3

Edited by zxc3
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

×
×
  • Create New...