NickWON Posted November 9, 2017 Posted November 9, 2017 Hello , im Nick ;-) I just registered here because i recently started to try out some autoit scripting. And my first project ... after "Hello World" should be a simple little bot for my gf ... who is playing some stupid little fb browsergame in her spare time . So ... i tryed myself getting into FF.au3 .. and also used all the necessary extentions .. Mozrepl , Firebug , Firepath ... but i couldnt realy get into it , firepath and bug didnt give me the informations that i needed , watched guides , tutorials . but it seems like im to newbie for that . Ok. Next try ... Image Search ... atleast with my understanding I have done everything right . but i am still watching with the eyes of an newbie . Maybe somebody of you smart guys can explain me what went wrong with my code . It should find bmp1 , click it . Find bmp 2 , click it . And repeat . But its not doing anything . dont even give me an error text . Please stay friendly . Its my first project and im totally overwelmed , some guiding would be very helpfull . Love and peace , looking for a nice conversation with you guys . #include <ImageSearch.au3> Func ; click bmp 1 $search = _ImageSearch("bmp1.bmp",1,$x,$y,0) If $search = 1 Then MouseClick("LEFT",$x,$y,1) Else MsgBox("","Error 1","Bild wurde nicht gefunden") EndIf EndFunc Func ;click bmp 2 $search = _ImageSearch("bmp2.bmp",1,$x,$y,0) If $search = 1 Then MouseClick("LEFT",$x,$y,1) Else MsgBox("","Error 1","Bild wurde nicht gefunden") EndIf EndFunc
Moderators Melba23 Posted November 9, 2017 Moderators Posted November 9, 2017 NickWON, Welcome to the Autoit forum. Unfortunately you appear to have missed the Forum rules on your way in (the link is in the menu bar at the top of the page). Please read them now, particularly the bit about not discussing game automation, and then you will understand why you will get no help and why this thread is now locked. I hope to see you again soon with a legitimate question. 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
Recommended Posts