ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

Modification of pixelnotifier / request

(1/1)

SANGRE:
I would like some help with modifying the pixel notifier found here:https://www.donationcoder.com/Software/Skrommel/
or a new script that does the following:

Pixelnotifier activates upon a specified button press until an Lbutton input(either manual or sent by the script, see more below) at which point it stops and resets itself.

Upon matching the pixel color specified, instead of the popup window, the script would send Lbutton by default or {Lbutton up} in the case Lbutton is already held down.

Pixel notifier searches multiple locations at the same time with a loop.

In short, I need an app that searches 5-10 specified pixels for a certain color, then on finding the color it sends either Lbutton, or Lbutton up if Lbutton is already held down.  I need this app to be activated by a keypress and then automatically deactivated upon a manual or programmitcally sent Lbutton activation

I would also prefer if this could 1) not use an .ini file for settings and 2)be integrated into the following script:


--- Code: Text ---KeysToParse = Numpad1,Numpad2,Numpad3,Numpad4,Numpad5,Numpad6Cooldown_Numpad1 := 13000Cooldown_Numpad2 := 13000Cooldown_Numpad3 := 6500Cooldown_Numpad4 := 13500Cooldown_Numpad5 := 9000Cooldown_Numpad6 := 9000 LastPressed_Numpad1 := 0LastPressed_Numpad2 := 0LastPressed_Numpad3 := 0LastPressed_Numpad4 := 0LastPressed_Numpad5 := 0LastPressed_Numpad6 := 0  ~f:: Loop,Parse, KeysToParse, CSV        {                timepassed := (A_TickCount - LastPressed_Numpad%A_Index%)                x := cooldown_numpad%A_index%                IfGreaterOrEqual, timepassed, %x%                        {                                Send {Numpad%A_Index%}                                keywait, Lbutton, D                                keywait, Lbutton, U                                sleep 150                                LastPressed_Numpad%A_Index% := A_TickCount                                Break                        }        } return

So again, ideally everytime I press the f key, after the "send {numpad%A_index%}" the pixel notifer would be activated.  It would then search 5-10 pixels for a specified color at a specified position.  (preferably modifiable inline and not in an ini file.)  At this point the pixel notifier would need to loop until the specified color at the specified location is found.

Where it says "Keywait, lbutton, d" and "keywait, lbutton, u", that would be replaced with an if statement where if the pixel matches and the Lbutton is held down, it would send Lbutton, U.  else if no Lbutton is held down, then it would just send Lbutton.

Once it sends that, the pixel notifier would then be disabled until the next press of the "f" button.

Thanks in advance, please let me know if there is any confusion.

Navigation

[0] Message Index

Go to full version