DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Detect change in marked area  (Read 20,807 times)

kgp43

  • Participant
  • Joined in 2016
  • *
  • Posts: 1
Detect change in marked area
« on: March 03, 2016, 05:03 PM »
Hi,

I just found this brilliant forum and hope some of you guys will be able to help me out :)

A windows program that will detect a change in a "marked/selected" area of the screen, and play a sound if it changes.

Example:
  1. Start program
  2. Select what area of the screen to monitor
  3. Select sound file to play
  4. click start button

The software will then "monitor" the selected area of the screen and play the sound file it it changes.

This will be used to monitor a game interface (window mode) and alert me if something changes (in a defined area of the window).


I hope one of you find this exciting and decide to give it a try :)

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Detect change in marked area
« Reply #1 on: March 03, 2016, 09:05 PM »
Exactly the same request has been posted on this forum some time ago, but I don't recall if it was answered... :-[
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: Detect change in marked area
« Reply #2 on: March 04, 2016, 02:05 AM »
Exactly the same request has been posted on this forum some time ago, but I don't recall if it was answered... :-[

If it was this you were thinking of it wasn't ... but there is: Skrommel's PixelNotifier
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903
« Last Edit: March 04, 2016, 02:19 AM by 4wd »

lhatch

  • Participant
  • Joined in 2021
  • *
  • Posts: 1
Re: Detect change in marked area
« Reply #3 on: December 10, 2021, 04:04 PM »
Sorry to revive an old post, but I too need this. 

I did pulled Pixelnotifier program and do not understand it.  I want to monitor an area of the screen (not a pixel) and if a % different change happened make a sound and launch a program maybe.  I would use it to monitor a video camera windows for change.  Sure other will use it for stock symbol changes and more.

I did have a program from years ago in autohotkey from Skrommel, but it never worked and I did not follow up with him.  Hoping someone has written something like that.  Or better documentation for pixel notifier.

I can upload the Skrommel code I have if needed.

Thanks.

user45454

  • Participant
  • Joined in 2010
  • *
  • Posts: 22
Re: Detect change in marked area
« Reply #4 on: March 24, 2022, 09:37 PM »
Yes, Lets revive this yet post again, I would realy like a program like this!

Usage: I would use a webcam pointed to my heater (see picture)
The program could watch the stream or I can snap picutures at intervalls that the program could look at.
If the ALARM lamp turns red = run a program.
Alarm is the lamp marked with an "!" in a rectangle and it can turn red or stay off.
[attachthumb=#]

Alarm is the most important, but if possible I would like to look at the other lights to.

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Detect change in marked area
« Reply #5 on: March 25, 2022, 12:39 AM »
If the ALARM lamp turns red = run a program.

Hi! I have code for this (GetWindowRect + percentage difference between images).

If you're having the webcam feed visible via webcam viewer program, this is a small app which can be put together quickly :)

Please confirm.
« Last Edit: April 06, 2022, 04:26 AM by publicdomain »

publicdomain

  • Honorary Member
  • Joined in 2019
  • **
  • Posts: 732
    • Participated in NANY Challenge Three Times
    • Linux User
Re: Detect change in marked area
« Reply #6 on: April 05, 2022, 11:50 PM »

Original address: https://www.donationcoder.com/forum/index.php?topic=42381.0