03/15/2017, 21:19
|
#35
|
elite*gold: 0
Join Date: Nov 2015
Posts: 157
Received Thanks: 61
|
Quote:
Originally Posted by lenclstr746
How do I know if my invisibility is open with "auto it"???
|
Include the library:
Quote:
Code:
#include <ImageSearch.au3>
|
Download ImageSearch:
Code:
Quote:
Code:
HotKeySet("s", "checkForImage") ; key s to start
HotKeySet("p", "pause") ; key p to pause
global $y = 0, $x = 0 ; declare the coordinates x and y
Func checkForImage() ; start the Function that searches the image
Local $search = _ImageSearch("Image.bmp", 0, $x, $y, 0) ; image.bmp( put the picture you have to look)
If $search = 1 Then
MouseMove($x, $y, 10) ; move mouse on Image if exist
EndIf
EndFunc ; end func
Func pause()
sleep(9999)
EndFunc
|
Final Visual:
Code:
#include <ImageSearch.au3>
HotKeySet("p", "checkForImage")
HotKeySet("p", "pause")
global $y = 0, $x = 0
Func checkForImage()
local $search = _ImageSearch("Image.bmp", 0, $x, $y, 0)
If $search = 1 Then
MouseMove($x, $y, 10)
EndIf
EndFunc
Func pause()
sleep(9999)
EndFunc
I suggest you look at this guide:
|
|
|