Jump to content

PixelGetColor


Recommended Posts

Hello All,

I've been lurking on this forum for a few weeks now and mostly have been finding the answers I need from other people's questions, until now. I'm working on a bot that will log in to the game, select the correct character, then enter the game environment. The problem I'm encountering is that after the 12 second pause either, AutoIt will just end without performing any tasks, or it will stay open and still not perform the task. To make matters worse, It actually did almost work once! The incorrect pixel must have been located and an attempt made to select the other character (the cursor moved to the correct character's icon) but no MouseClick was performed.

Here's what I've got so far. Any suggestions?

Do

Sleep(5000)

Run ("C:\Program Files\CCP\EVE\eve.exe");Opens EVE-Online

WinWait("EVE");Allows time for startup

Sleep(15000)

MouseClick( "left", $xMiner, $yMiner,30);Location of PW box

Sleep(100);Brief pause

Send("xxxxxxxxx");Password

Sleep(100);Brief pause

Send("{ENTER}");Enters character selection screen

Sleep(12000);Allows time to enter character selection screen

While 1;Performs action once

Opt("PixelCoordMode", 0); 1=absolute, 0=relative, 2=client

If ($Coord) = 0xDEE6DE Then;Checks for the pixel located @ the x,y Coords

MouseClick("left", $xEnterA, $yEnterA, 30);Enters Game

Sleep(2000)

ElseIf ($Coord) = 0x111B1D Then;Checks for the pixel located @ the x,y Coords

MouseClick("left", $xOther, $yOther, 30);This would then select the character Minmatar Citizen

EndIf

WEnd

Sleep(1000)

Until $i = 1

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...