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: IDEA: $$Expand PixelNotifier capabilities to monitor for multiple colors at once  (Read 5,864 times)

Sykora

  • Participant
  • Joined in 2017
  • *
  • Posts: 1
Hi there!

So I created an array of 47 pixel coordinates to monitor for specific color changes, there are 11 different possible colors, therefore 517 lines of monitor coding.

I'm using PixelNotifier from this site, by Skrommel. http://www.donationcoder.com/Software/Skrommel/index.html#PixelNotifier

The trouble is, it can't seem to handle more than 9/10 concurrent lines of code before erroring out.

This is the error I see, if there are more than 9 or 10 lines of code:
ErrorPixelNotifier.JPG

I would definitely like to expand this capability to be able to monitor more pixels, preferably to 517 (memory allowing) or at the very least, around 50.

I'm happy to donate to anyone who can fix this for me! I looked at the rules I could find on here, and I didn't *see* anything against offering to donate for code snacks, but I certainly think I ought to buy you a couple of cheezeburgers if you can help me with this. ^_^

If you need more info, I'm happy to give it, too!

Thank you for reading! =)
« Last Edit: April 02, 2017, 04:08 PM by Sykora »

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
You might also go ahead and attach an example of what you're trying to do- for better specification of what you're looking for and for testing.  That might get some interested that might not otherwise be interested.

Lintalist

  • Participant
  • Joined in 2015
  • *
  • Posts: 122
The source code (=script) of the program is available as you can see here http://www.donationcoder.com/Software/Skrommel/PixelNotifier/PixelNotifier.ahk
(I have not studied the code, only glanced at it briefly)

You need AutoHotkey to run or compile the script which you can find at http://autohotkey.com/

The error message shows what would need to be added to make it work for the 10th menu? entry.

If you look at the script where it says
Code: ( autohotkey)
TRIGGERED_9:
triggered=9
Goto,TRIGGERED
TRIGGERED_8:
triggered=8
Goto,TRIGGERED
TRIGGERED_7:
triggered=7
; etc
what would happen (you have to try it yourself after installing AHK) if you simply add more labels

Code: ( autohotkey)
; start at 50
TRIGGERED_50:
triggered=50
Goto,TRIGGERED
; all the way to 10
; ......
TRIGGERED_12:
triggered=12
Goto,TRIGGERED
TRIGGERED_11:
triggered=11
Goto,TRIGGERED
TRIGGERED_10:
triggered=10
Goto,TRIGGERED
TRIGGERED_9:
triggered=9
Goto,TRIGGERED
TRIGGERED_8:
triggered=8
Goto,TRIGGERED
TRIGGERED_7:
triggered=7
; etc

and do the same where you find the "TOGGLE_9:" line just add TOGGLE_50 .... TOGGLE_10 above it.

IainB

  • @Slartibartfarst
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
^^ Now that's rather helpful. I learned something there, too. Thanks @Lintalist.    :Thmbsup:

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