SsCriPteR Posted March 30, 2015 Posted March 30, 2015 (edited) Hello, I'm having some issues on this. Keep in mind that i'm starting to learn the basics of AutoIt now... expandcollapse popup#include <ImageSearch.au3> #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Lane Bot", 186, 195, 769, 326) $Radio1 = GUICtrlCreateRadio("Mid", 16, 64, 73, 17) GUICtrlSetFont(-1, 10, 400, 0, "Consolas") $Radio2 = GUICtrlCreateRadio("Top", 16, 16, 113, 17) GUICtrlSetFont(-1, 10, 400, 0, "Consolas") $Radio3 = GUICtrlCreateRadio("Adc", 16, 88, 65, 17) GUICtrlSetFont(-1, 10, 400, 0, "Consolas") $Radio4 = GUICtrlCreateRadio("Support", 16, 112, 65, 17) GUICtrlSetFont(-1, 10, 400, 0, "Consolas") $Radio5 = GUICtrlCreateRadio("Jungle", 16, 40, 113, 17) GUICtrlSetFont(-1, 10, 400, 0, "Consolas") $Button1 = GUICtrlCreateButton("READY", 16, 144, 81, 25, $WS_GROUP) GUICtrlSetFont(-1, 11, 800, 2, "Consolas") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Global $X = 0, $Y = 0 While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Bot() EndSwitch WEnd Func Bot() $Search = _ImageSearch('blank.png', 0 , $X , $Y , 0) If $Search = 1 Then MouseClick($X, $Y , 10) Else Bot() EndIf EndFunc What i want, is that AutoIt keeps looking for the Image until it finds it, I'm trying to create a loop but it's not working. Someone help me please :3 Thank you for time. Goncalo Edited March 30, 2015 by SsCriPteR
spudw2k Posted March 30, 2015 Posted March 30, 2015 Would you care to clarify what a "lane bot" is? This topic may be against the >forum rules. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX Builder Misc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retrieve SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose Array Projects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalc Cool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF
SsCriPteR Posted March 30, 2015 Author Posted March 30, 2015 Well, I'm just trying to create a bot, that when finds a image, it will write something. That's it. But can you help please?
MikahS Posted March 30, 2015 Posted March 30, 2015 This is game automation. >Forum Rules Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ
SsCriPteR Posted March 30, 2015 Author Posted March 30, 2015 This kind of Game Automation it's not going against the company rules. So i don't see what is the problem?
MikahS Posted March 30, 2015 Posted March 30, 2015 It's the AutoIt forum rules that count here. Not the game companies. You can do it, just don't expect help from the Forum, as we will get reprimanded for even helping you. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ
SsCriPteR Posted March 30, 2015 Author Posted March 30, 2015 (edited) Really? This is a simple bot, it's not gonna "hack" the game, all i need is help it to find the image :-( Edited March 30, 2015 by SsCriPteR
MikahS Posted March 30, 2015 Posted March 30, 2015 Yes, you are "automating" finding something in your "game". Hence, "game automation". Sorry. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ
Moderators Melba23 Posted March 30, 2015 Moderators Posted March 30, 2015 SsCriPteR,MikahS is quite right - thread 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
Recommended Posts