Deadlyrain Posted March 30, 2013 Share Posted March 30, 2013 Hey guys, So i just made my first Autoit script that was supposed to collect rocks on a game but when i started the script it just brought the mouse to the top of my browser and clicked that instead... I dont know what i Did wrong but here is the script. $pixel = PixelSearch(0, 0, 1599, 899, 0x814900) If IsArray($pixel) = True Then MouseClick( $pixel, 0, 1, 1, 10) EndIf Like i said the code would go to the top left corner of the screen and click. Im looking for it to click certain parts of the screen that had rocks on it but i dont know what i did wrong lol but atleast the script worked Link to comment Share on other sites More sharing options...
JohnOne Posted March 30, 2013 Share Posted March 30, 2013 Hey guys, So i just made my first Autoit script that was supposed to collect rocks on a game but when i started the script it just brought the mouse to the top of my browser and clicked that instead... I dont know what i Did wrong but here is the script.$pixel = PixelSearch(0, 0, 1599, 899, 0x814900)If IsArray($pixel) = True ThenMouseClick( $pixel, 0, 1, 1, 10)EndIfLike i said the code would go to the top left corner of the screen and click. Im looking for it to click certain parts of the screen that had rocks on it but i dont know what i did wrong lol but atleast the script worked You can certainly tell that it's your first script.You say "atleast the script worked", if you mean the mouse moved, then maybe it did, but only accidentally, because your function call has many mistakes.However, since you are creating a game cheat, It's doubtful you're going to get any help in this thread.You'll do yourself a favour by reading and understanding the the forums rules thoroughly before your next attempt. 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...
Moderators Melba23 Posted March 30, 2013 Moderators Share Posted March 30, 2013 Deadlyrain,JohnOne is quite right - please read the Forum rules (the link is also at bottom right of each page) - particularly the bit about not discussing game interaction - before you post again. Thread locked. But welcome to the AutoIt forum - and see you soon with a legitimate question I hope. Abraluna,Please do not offer help in threads which break the rules - engage your brain before posting. 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