IamMike4Life Posted June 1, 2012 Share Posted June 1, 2012 Hi, I'm new to Autoit but not to programming. My experience is with C# but Autoit seems like the choice for Botting. I'm sorry if this is the wrong place to post this Topic, If it is then please take it down. First off, I've been reading alot of tutorials along with samples on how to use 'PixelSearch' but I'm still having alot of trouble and its driving me insane. I've been trying to successfully come up with a resolution but still, I'm stuck. What I'm trying to do is simple...So I would like it to be...Here is what I have and what I would like it to do. While $Run WinActivate("Diablo III") CheckInventory() WEnd Func CheckInventory() If $BotIsInventoryOpen Then $BotIsLookingAtItems = True Sleep(200) MouseMove(1256, 585, 10); (Column 1, Row 1) CheckItem() Sleep(200) Else Sleep(500) Send("{I}") Sleep(500) If PixelGetColor(1471, 169) = 0xFFA300 Then $BotIsInventoryOpen = True EndIf EndIf EndFunc Func CheckRareItem() ToolTip("") $Pos = MouseGetPos() $coord = PixelSearch($Pos[0] -15, $Pos[1] -15, $Pos[0] +15, $Pos[1] +15, 0xFFFFFF) Sleep(1000) If Not @error Then ToolTip("Rare Item") EndIf EndFunc Link to comment Share on other sites More sharing options...
Bert Posted June 1, 2012 Share Posted June 1, 2012 (edited) For your reading pleasure...Forum RulesYour new here so you may have missed them on the way in. If you are looking for stuff that doesn't involve things against the forum rules, we are happy to help you. Edited June 1, 2012 by Bellicus The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 1, 2012 Moderators Share Posted June 1, 2012 IamMike4Life,Autoit seems like the choice for BottingIt might well be - but we do not support such usage here. Please read the rules to which you were linked and abide by them in future. 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