Jump to content

PixelSearch


zFame
 Share

Recommended Posts

Hello!!

This is what i actually did..

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Triggerbot paused!',0,0)
    WEnd
    ToolTip("")
EndFunc

While 1
   PixelSearch(600,315,790,700,0xE75E5F,5)
   If Not @error Then
    MouseClick("left")
   EndIf
WEnd

So.. Is there any way to add multiple colors with pixelsearch? If not.. Is there any way to make sure that it doesn't press left click if an exact color appears?

Thanks for your help!

Link to comment
Share on other sites

@zFame Usually pixelsearch is not used like that (or at least I have never used it like that).
Also, not left clicking if an exact colour appears is just the opposite of clicking if an exact colour appears, is it not?

What exactly are you trying to do with it? I can then see if your method is better or not.

Link to comment
Share on other sites

I'm using this script to autoshoot when red names appears on screen.. the problem is that i need to make the resolution to check in a really small part of screen so that other red colors ingame doesn't activate the left click.. (as you see 600,315,790,700)

"Also, not left clicking if an exact colour appears is just the opposite of clicking if an exact colour appears, is it not?" Yeah exactly.. like that i can make the pixelsearch look in all my screen excluding some exact colors..

I also wanted to multiple pixel search cause of ingame brightness changes the red names and adding too much variation finishes in shooting even when the names doesn't appear..

Link to comment
Share on other sites

You have started 3 threads since 2015, two of them have already been locked because all were game related.
Looks like you still haven't read the forum rules :(
I guess this thread will be locked as well.

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2024-07-28 - Version 1.6.3.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 (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

  • Jos locked this topic
  • Developers

You have now 5 days to properly read those forum rules and consider this the last warning.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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