Jump to content

_ImageSearch


Recommended Posts

 
 
#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
Link to comment
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.

Link to comment
Share on other sites

  • Moderators

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

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...