topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday April 18, 2024, 8:01 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: $$Expand PixelNotifier capabilities to monitor for multiple colors at once  (Read 3778 times)

Sykora

  • Participant
  • Joined in 2017
  • *
  • Posts: 1
    • View Profile
    • Donate to Member
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. https://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, 11:08 AM by Sykora »

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
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: 120
    • View Profile
    • Lintalist
    • Donate to Member
The source code (=script) of the program is available as you can see here https://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 [Select]
  1. TRIGGERED_9:
  2. triggered=9
  3. Goto,TRIGGERED
  4. TRIGGERED_8:
  5. triggered=8
  6. Goto,TRIGGERED
  7. TRIGGERED_7:
  8. triggered=7
  9. ; etc
what would happen (you have to try it yourself after installing AHK) if you simply add more labels

Code: Autohotkey [Select]
  1. ; start at 50
  2. TRIGGERED_50:
  3. triggered=50
  4. Goto,TRIGGERED
  5. ; all the way to 10
  6. ; ......
  7. TRIGGERED_12:
  8. triggered=12
  9. Goto,TRIGGERED
  10. TRIGGERED_11:
  11. triggered=11
  12. Goto,TRIGGERED
  13. TRIGGERED_10:
  14. triggered=10
  15. Goto,TRIGGERED
  16. TRIGGERED_9:
  17. triggered=9
  18. Goto,TRIGGERED
  19. TRIGGERED_8:
  20. triggered=8
  21. Goto,TRIGGERED
  22. TRIGGERED_7:
  23. triggered=7
  24. ; etc

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

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,540
  • @Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
^^ Now that's rather helpful. I learned something there, too. Thanks @Lintalist.    :Thmbsup: