chorao157 Posted June 20, 2014 Share Posted June 20, 2014 (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 June 20, 2014 by chorao157 Link to comment Share on other sites More sharing options...
JohnOne Posted June 20, 2014 Share Posted June 20, 2014 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. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Sori Posted June 21, 2014 Share Posted June 21, 2014 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. Link to comment Share on other sites More sharing options...
XiaolinDraconis Posted June 21, 2014 Share Posted June 21, 2014 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. Link to comment Share on other sites More sharing options...
chorao157 Posted June 25, 2014 Author Share Posted June 25, 2014 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 More sharing options...
Moderators Melba23 Posted June 25, 2014 Moderators Share Posted June 25, 2014 chorao157, not, its not a gameWith 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. M23 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 columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts