Skip to content
CoyoteMIDI
  • Upgrade to PRO
  • My account
  • Help
  • Contact
  • Shopping Cart
CoyoteMIDI
  • Shopping Cart
  • Upgrade to PRO
  • My account
  • Help
  • Contact

CoyoteScript (PRO only)

CoyoteScript Basics
  • Collection Operations
  • Command Nesting
  • Comments
  • Documentation Syntax
  • Events
  • Logical and Comparison operators
  • Math Operations
  • Triggers
  • Using Scripts
  • Variables
CoyoteScript Commands
  • After
  • Before
  • Case
  • Ceiling
  • Click
  • Cooldown
  • CopyFile
  • Cos
  • Count
  • CreateFolder
  • Date
  • DeleteFile
  • DeleteFolder
  • Else
  • Floor
  • Foreach
  • GetFiles
  • GetFolders
  • GetMouse
  • GetPixel
  • GetRecordingVolume
  • HeldNotes
  • If
  • Indicator
  • IsProcessFocused
  • IsProcessRunning
  • Key
  • KeyState
  • KillProcess
  • MapKeys
  • MapValues
  • Max
  • MessageBox
  • Midi
  • Min
  • MoveFile
  • MoveFolder
  • MoveMouse
  • ParseJSON
  • Print
  • Random
  • Repeat
  • Rest
  • Return
  • Round
  • RunScript
  • SearchImage
  • SearchPixel
  • SetFocusedProcess
  • SetRecordingEnabled
  • SetRecordingVolume
  • SetVolume
  • Sin
  • Split
  • StartProcess
  • Switch
  • Tan
  • Time
  • Wait
  • Web
  • While
  • Write
CoyoteScript Events
  • Key
  • Midi
  • Process
  • ScriptsLoaded
  • Shutdown
  • Startup
  • Time
  • WindowChanged
  • WindowsSession

Basic Operation

  • CoyoteMIDI FAQ
  • Getting Started
  • Overview
  • Using CoyoteMIDI with a DAW (loopback MIDI)

Other

  • Version Changelog
  • Home
  • Docs
  • CoyoteScript (PRO only)
  • CoyoteScript Commands
  • SearchPixel

SearchPixel

searchpixel [R:<#>,G:<#>,B:<#>] (<max amount of results>) (<bounds X1>,<bounds Y1>,<bounds X2>,<bounds Y2>)

Finds all pixels matching a specific colour value and returns a list of each X Y coordinate set.

Parameters:

  1. A map containing the RGB values of the pixel to search for. The map is expected to have each one of the following keys: R, G, and B. Each key’s value should be an integer ranging from 0 to 255.
  2. The maximum amount of pixels to include in the result. When the maximum amount of results is reached, the search will stop early. The default value is -1 (infinite results).
  3. The bounds in which to search for the pixels. The expected input is a list with 4 numbers of which the first 2 represent the X and Y coordinates of one corner of the bounds, and the last 2 values represent the X and Y coordinates of the opposite corner of the bounds. By default, every the entire virtual screen (across all monitors) is searched through.

Returns: A list of coordinates. each entry of the list is a coordinate in the form of its own list with an X and a Y value.

Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Updated on April 21, 2022
MaxSearchImage
© 2023 - CoyoteMIDI | All rights reserved