marcelofeb Posted November 11, 2016 Posted November 11, 2016 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!
Moderators JLogan3o13 Posted November 11, 2016 Moderators Posted November 11, 2016 @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!
InunoTaishou Posted November 11, 2016 Posted November 11, 2016 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
marcelofeb Posted November 11, 2016 Author Posted November 11, 2016 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.
JohnOne Posted November 11, 2016 Posted November 11, 2016 (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 November 11, 2016 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now