Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 12:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



AutoIt code won't start

Discussion on AutoIt code won't start within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2014
Posts: 4
Received Thanks: 0
Question AutoIt code won't start

Problem solved
Unweighted is offline  
Old 08/02/2014, 20:50   #2
 
Paraly's Avatar
 
elite*gold: 27
Join Date: Sep 2009
Posts: 5,609
Received Thanks: 1,596
you need to call the function, I've added a hotkey to your code so you can call the func with F10


Code:
#include "ImageSearch.au3"

HotKeySet("{F10}","Start")

$X = 0
$Y = 0

Func Start()
   $Search = _ImageSearch('mc1.bmp', 0, $X, $Y, 0)  
   If $Search = 1 Then
      MouseMove($X, $Y, 1)
      MouseClick("left")
   EndIf 
   
   $Search = _ImageSearch('mc2.bmp', 0, $X, $Y, 0)  
   If $Search = 1 Then
      MouseMove($X, $Y, 1)
      MouseClick("left")
   EndIf 
   
   $Search = _ImageSearch('mc3.bmp', 0, $X, $Y, 0)  
   If $Search = 1 Then
      MouseMove($X, $Y, 1)
      MouseClick("left")
   EndIf 
EndFunc

while 1
   sleep(100)
WEnd
Paraly is offline  
Thanks
1 User
Old 08/02/2014, 21:17   #3
 
elite*gold: 0
Join Date: Jul 2014
Posts: 4
Received Thanks: 0
Problem solved, thank you
Unweighted is offline  
Old 08/03/2014, 02:28   #4
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Even if your problem is solved, don't delete your post.
alpines is offline  
Reply




All times are GMT +1. The time now is 12:14.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.