Sign in to follow this  
Followers 0
DsBotter

Need help with pixelsearch please! Simple.

4 posts in this topic

Hey guys, I am new to this and only know a few things so hard. My problem is really simple to other people with knowledge of doing this, I would assume.

I am making a mining bot for this 2d game.. It's very simple, i got the movements down, and i got the mouse were it needs to go to start a quest, but sometimes the mob it needs to click on isn't at the same exact part of the client were it was before, it might be under a picture of another mob, and it will attack that mob instead of clicking the quest mob and getting a quest.

Can someone help me out with pixelsearch so that i can select this mob only?

And here is my script so far.

WinMove("Dark swords", "", 0,0) < Moves client top left
$coord = PixelSearch( 0, 0, 155, 9, 0xF0F857 ) < need help
mouseclick ("")
sleep(4000)
mousemove(163,39) < Moves mouse to quest mob
MouseClick ("") < clicks quest mob, opens up new box showing quests you can take
sleep(2000)
mousemove(678,297) goes to the mining quest 
mouseclick("") clicks mining quest, opens up new box with accept/deny
sleep(6000)
mousemove(623,533) moves mouse to accept
mouseclick("") clicks accept
sleep(6000)
Send("{RIGHT}")
Sleep(6000)
Send("{RIGHT}")
sleep(6000)
Send("{RIGHT}")
sleep(6000)
Send("{RIGHT}")
sleep(6000)
Send("{RIGHT}")
sleep(6000)
Send("{LEFT}")
Sleep(6000)
Send("{LEFT}")
sleep(6000)
Send("{LEFT}")
sleep(6000)
Send("{LEFT}")
sleep(6000)
Send("{LEFT}")

I have all the movements down, i just need the bot to do a pixelcheck, and once it finds the color i want, to click it.

Share this post


Link to post
Share on other sites



DsBotter,

Welcome to the AutoIt forum. Unfortunately you appear to have missed the Forum Rules on your way in. Please read them now and then you will understand why you will get no help and this thread will shortly be locked. :D

See you soon with a legitimate question I hope. :oops:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

>>>> Window <<<<

Title: DarkSwords (v 1.2.4.1)

Class: TMainForm

Position: 244, 0

Size: 717, 729

Style: 0x16CE0000

ExStyle: 0x00010100

Handle: 0x00000000003C0170

>>>> Control <<<<

Class: TdsPanel

Instance: 2

ClassnameNN: TdsPanel2

Name:

Advanced (Class): [CLASS:TdsPanel; INSTANCE:2]

ID: 1770324

Text:

Position: 0, 0

Size: 702, 414

ControlClick Coords: 155, 10

Style: 0x56000000

ExStyle: 0x00010000

Handle: 0x00000000001B0354

>>>> Mouse <<<<

Position: 407, 40

Cursor ID: 0

Color: 0xEBFF0B

^ There is the finder tool information on the spot were i need the mouse to click for the pixel check thing.

Share this post


Link to post
Share on other sites

I feel like I'm the only person on the planet who bothers to read forum rules before registering/posting on a forum. Thread locked.

Share this post


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