Jump to content
Sign in to follow this  
Deadlyrain

PixelSearch collector gone wrong.

Recommended Posts

Deadlyrain

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 :P

Share this post


Link to post
Share on other sites
JohnOne

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 :P

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.

Share this post


Link to post
Share on other sites
Melba23

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. :naughty:

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


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×