cruzehh_

help me

5 posts in this topic

#1 ·  Posted (edited)

hey I need help coding i bot I want to do that as soon the imagesearch detect the picture to close it it works when i press the hotkey for it but i want to do it without Hotkey just as soon as the window pops op to close it heres my code please help me :) 

 

-snip-

Edited by Jos

Share this post


Link to post
Share on other sites



Welcome to AutoIt and the forum!

Does the popup have a window title you could use to detect it? If there is a button to click does the AutoIt WIndow Info Tool provide an ID for this button?
Maybe you could post a screenshot of the window and the AutoIt Window Info Tool?

BTW: Could you please give meaningful titles to your posts? You get more answers when people know what you are asking for without first having to open the thread.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

thanks for youre reply water , its a game and you have to collect resources sometimes theres a screen pop up the resource in not avaible anymore and thers a close button i screenshotted that and let it detect by imagesearch it works when i press the hotkey the mouse move on the button and close it but i want to do it that it as soon as it comes up closed not me pressing the hotkey you understand ? :) 

Share this post


Link to post
Share on other sites

it has no ID 

btw

Share this post


Link to post
Share on other sites
8 minutes ago, cruzehh_ said:

its a game

Seems you missed to read the forum rules on your way in. Game automation of any kind is not permitted here.
Hence you won't get assistance on this subject here.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.