marcelofeb

Image Search.

5 posts in this topic

 

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!

Share this post


Link to post
Share on other sites



@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 ;)


When you're dead, you don't know you're dead - it's only difficult for those that know you. It's the same way when you're stupid...

My Scripts: SCCM UDFInclude Source with Compiled Script, Windows Firewall UDF

Share this post


Link to post
Share on other sites
Local $aImages[] = ["Path To Image1", "Path To Image2", "Path To Image3", "Path To Image4", "Path To Image5", "Path To Image6", "Path To Image7", "Path To Image8]"

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

 

Share this post


Link to post
Share on other sites

 

Good Morning! Is very close to this model, if when the image 1 appears I need to press button 1 until this image disappears, when image 2 appears press button 2 until the image disappears, and so on. Thank you.

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Monkey's are, like, natures humans.

Share this post


Link to post
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