Jump to content

Image Search.


Recommended Posts

 

Hello everyone.

I'm from Brazil, and I do not speak English very well, but I'll try to tell you my problem.

 

When an image appears, I need an "X" key to be pressed until this image disappears, this can occur with a variation of 8 or more images, each pressing a different key.

Tanks!

Link to comment
Share on other sites

  • Moderators

@marcelofeb you need to be more specific, as in what application you're trying to manipulate. Not every application is going to behave the same. Help us help you by providing a detailed description of what you are trying to do (screenshots would be awesome), rather than expecting us to guess ;)

"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

Use a 2D array, with image path in [0] and key to send in [1].

For $i = 0 to UBound($aImages) - 1
    While (ImageSearch($aImages[$i][0]))
        Send($aImages[$i][1])    
    WEnd
Next

 

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

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...