Jump to content

Send Key After Image Detection


jakobs
 Share

Recommended Posts

hey Guys i hope you can help me here , I want to make a script , which as soon it detecs the Pixelsearch to press esc and make a loop of it Pixelsearch , Esc , Pixelsearch , Esc 

heres my code

 

  func Imagesearch()
   while 1

      $array_pos = PixelSearch(70,150,1500,500 ,0xFF1C00, 0)

      If @error = 0 then

      Mouseclick("left", $array_pos[0],$array_pos[1],2,0)

      Send( "{ESCAPE}" , 500 )

      EndIf

      Sleep (500)

WEnd

 

 

How do i do it ? :/

Link to comment
Share on other sites

  • Moderators

@jakobs What exactly are you trying to automate? Typically there is a much easier way to do it than using imagesearch and pixelsearch.

"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

Just now, JLogan3o13 said:

@jakobs What exactly are you trying to automate? Typically there is a much easier way to do it than using imagesearch and pixelsearch.

No id like to use the pixelsearch :) and just press an esc in a loop after it :) can you help me ?

 

Link to comment
Share on other sites

  • Moderators

You're not understanding, without knowing what the browser window is, no one can assist you. Is it an IE window, a Chrome window, a Java game, what? And what is the URL?

"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

Yes I really need a screenshot for it. We can't help with only vague statements, it helps to see what you are seeing. Why don't you want to post?

"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

I did, and you have my PM response. As you stated you read the forum rules, and acknowledge you're trying to circumvent them, I see no point in you continuing on this forum.

"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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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