Sign in to follow this  
Followers 0
chorao157

_ImageSearch

6 posts in this topic

#1 ·  Posted (edited)

 
 
#include <ImageSearch.au3>

HotKeySet("p", "checkForImage")

global $y = 0, $x = 0

Func checkForImage()
Local $search = _ImageSearch('confirm.bmp', 0, $x, $y, 0)
If $search = 0 Then
ToolTip("not found")
Else
   MouseMove($x, $y, 10)
EndIf
EndFunc

while 1
sleep(200)
WEnd
"C:Program Files (x86)AutoIt3SciTE..autoit3.exe" /ErrorStdOut "C:UsersFVSPNDesktoplosttower.au3"    
"C:\Program Files (x86)\AutoIt3\Include\ImageSearch.au3" (44) : ==> Subscript used on non-accessible variable.:
if $result[0]="0" then return 0
if $result^ ERROR
>Exit code: 1    Time: 0.5369
 
 
whats is it?
Edited by chorao157

Share this post


Link to post
Share on other sites



What is the code around "result[0]"?


If you need help with your stuff, feel free to get me on my Skype.

I often get bored and enjoy helping with projects.

Share this post


Link to post
Share on other sites

What is the code around "result[0]"?

 

the [0] part means it is an Array. Also, the title of your script suggests it is for a game. That's a big no no round here.

Share this post


Link to post
Share on other sites

It's a bit of code you posted along with an error which has nothing to do with the code you posted.

Don't wast peoples time, post the whole code.

 

this is the all of code... '?do=embed' frameborder='0' data-embedContent>>

i just only try compile

the [0] part means it is an Array. Also, the title of your script suggests it is for a game. That's a big no no round here.

not, its not a game. i only want search a button confirm.

Share this post


Link to post
Share on other sites

chorao157,

 

not, its not a game

With a name like "losttower.au3"? Please read the Forum rules (there is also a link at bottom right of each page) - particularly the bit about not discussing game automation - before you post again. This thread will now be locked. :naughty:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0