Sign in to follow this  
Followers 0
Splitz

Pixelsearch Script

8 posts in this topic

Hello! i want to make a small change to this script but i'm not sure quite how. i would like to add a new function to it to do the following.

Currently the script detects a color at (687, 792, 688, 793) and when it appears it fires off with sending "5" to the Aim Window and then resets.. well i wanted to make a small change in the script to make it not fire off, and that is if there happens to be a pure white pixel anywhere between (710, 810, 711, 811) while the "PixelSearch(687, 792, 688, 793, 6237952, 1)" is also present and $on=1

So if there happens to be a pure white pixel at "(710, 810, 711, 811)" but "PixelSearch(687, 792, 688, 793, 6237952, 1)" is also active, then it should just stall until the pure white pixel is gone, and then send a beep and send "5" once the white pixel is gone but "PixelSearch(687, 792, 688, 793, 6237952, 1)" is still up.

Thanks :oops:

Global $on=0
HotKeySet("5", "Number1")
While 1
        Sleep(100)
WEnd
Func Number1()
if $on=0 Then
SoundPlay("E:\Program Files (x86)\FeedDemon\Data\sounds\Spam.wav"); On
$on=1
Else
Beep(5500, 500) ; Off
$on=0
EndIf
    While $on=1
Sleep(100)
PixelSearch(687, 792, 688, 793, 6237952, 1)
If  Not @error Then
ControlSend("Notepad", "", "", "5")
Sleep(100)
Beep(5500, 500) ; Off  same sound
$on=0
EndIf
    WEnd
EndFunc

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Is this the same problem that has been locked by Melba at 03:03 PM?

If yes, don't open a new thread when another thread with the same subject has already been locked! Please check the forum rules:

"Do not create a new topic on a subject if a previous topic on that subject was locked."

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Carmilla,

I have just seen your PM where you claim that this is not a game-bot. I am always ready to unlock a thread if the OP can show that my suspicions were groundless - but you have already started another thread without waiting for me to reply - so I am tempted to give you a short holiday directly. :oops:

However, if you post a screenshot including this "Aim" window and whatever you are trying to PixelSearch with your Func "Number1(Trigger)" so that we can confirm your claim, I might reconsider. :doh:

In the meantime, can everyone else please refrain from posting in this thread. :bye:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

its just one of my notepad windows, i haven't had to go through this level of proving my script isn't being used for botting purposes since joining the forums, is this something new or does my script really appear to be that malicious ?

Posted Image

Share this post


Link to post
Share on other sites

Carmilla,

You might have been here a long time - but have you read the Forum Rules recently? We now have a "zero-tolerance" attitude to anything that involves automating games which we enforce rigidly - so a script which uses PixelSearch, has a "Trigger" function and an "Aim" window sets off a lot of alarms! :doh:

You might also like to note the other rules as well - as I mentioned above, starting this second thread before getting the all-clear was really not a very good idea. :bye:

However, I am now very happy to leave this one open - I hope you get plenty of replies. But next time, please try to avoid using variable/function names which will cause unwarranted alarm. :oops:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

its just one of my notepad windows

Why would you rename the "Notepad++" program to "Aim"? Seems a bit contrived to me.


Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Share this post


Link to post
Share on other sites

I would agree. I would love to know what legitimate need you would have to change the Window Title and not the document title.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Carmilla,

I hope you get plenty of replies

And interesting replies they are too..... :oops:

I would hate to think you had not been entirely open with me - care to respond some time soon? :bye:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0