title: how to setup pixelSearch only in middle of window mode screen
body: <p>im playing ragnarok using macro.. my script is doing good.. but how can i pixelsearch/attack only the middle area? im using 1024 x 768 game window mode, using the CoordMode, Pixel, Relative</p>
  
  <p><img src="https://i.stack.imgur.com/qunpF.png" alt="http://i60.tinypic.com/t681md.png"></p>
  
  <pre><code>CoordMode, Pixel, Relative
  CoordMode, Mouse, Relative
  
  
      Home:: ;click home to start
  
         Loop  {
      PixelSearch, X, Y, 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, 0x00FF00, 0, fast  ;&lt;--- this is the color of green boxed monsters to attack
      if(ErrorLevel=0) {
      MouseClick, left, %X%, %Y%
       }
      else {
  
          Send {F1}   ; &lt;--- if no monster present in screen, press teleport to search monsters
  
  
           }
      }
      return
  
      PgUp::Pause
      End::ExitApp 
  </code></pre>