Jump to content

Pixelsearch Script


Recommended Posts

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
Link to comment
Share on other sites

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 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
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

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

  • Moderators

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

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...