Sign in to follow this  
Followers 0
cainn82

check this script please and tell me if i got the pixel get right

9 posts in this topic

#1 ·  Posted (edited)

#cs ----------------------------------------------------------------------------

AutoIt Version: 3.2.10.0

Author: myName

Script Function:

Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here;

MouseMove (36, 707) ; move to magic 3 icon;

MouseClick ("left")

MouseClick ("left")

sleep (80000)

mousemove (559, 567) ; move to luanch button;

MouseClick ("left")

sleep (65000)

mousemove (684, 391)

mouseclick ("left")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ("{BS}")

send ( "cainn823")

mousemove (683, 412)

mouseclick ("left")

send ( "*******")

mousemove (676, 461)

mouseclick ("left")

sleep (120000)

mousemove (244, 760)

mouseclick ("left")

mousemove (268, 656)

sleep (3000)

mousemove (411, 659)

sleep (3000)

mousemove (516, 660)

mouseclick ("left")

$nTitle = "windowsforms10.window.8.app.0.33c0d9d"

While 1

If Not PixelGetColor (636, 506) = (13624556) Then

mousemove (1031, 487)

mouseclick ("left")

send ("sell")

mousemove (1040, 513)

mouseclick ("left") ;; Send message.

EndIf

Sleep(60000)

WEnd

While 1

;Your code

If PixelGetColor(636, 506) = (13624556) then

mousemove (614, 471)

mouseclick ("left")

endif

wend

i have tried and tried and cant figure out if i have it right

Edited by cainn82

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

CODE
While 1

If Not PixelGetColor (636, 506) = (13624556) Then

mousemove (1031, 487)

mouseclick ("left")

send ("sell")

mousemove (1040, 513)

mouseclick ("left") ;; Send message.

EndIf

Sleep(60000)

WEnd

While 1

;Your code

If PixelGetColor(636, 506) = (13624556) then

mousemove (614, 471)

mouseclick ("left")

endif

wend

Looks off Try:

CODE
While PixelGetColor (636, 506) <> (13624556)

mousemove (1031, 487)

mouseclick ("left")

send ("sell")

mousemove (1040, 513)

mouseclick ("left") ;; Send message.

Sleep(60000)

WEnd

While PixelGetColor(636, 506) = (13624556)

mousemove (614, 471)

mouseclick ("left")

wend

Edited by flip209

" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

the first part of the code did work but when the trade window poped up it just sat there thanks for your help flip

Share this post


Link to post
Share on other sites

That is what you wanted right?


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

edit the yes button

Share this post


Link to post
Share on other sites

Hey Cainn, it'd be a good idea to remove your password from the script.

Share this post


Link to post
Share on other sites

lol your right and i changed my password lol

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

the first part of the code did work but when the trade window poped up it just sat there thanks for your help flip

How log did you wait? Cause you have a sleep of a minute? Maybe try this...

CODE
While 1

If PixelGetColor (636, 506) <> (13624556)

mousemove (1031, 487)

mouseclick ("left")

send ("sell")

mousemove (1040, 513)

mouseclick ("left") ;; Send message.

endif

if PixelGetColor(636, 506) = (13624556)

mousemove (614, 471)

mouseclick ("left")

endif

Sleep(100)

WEnd

Edited by flip209

" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
Share on other sites

I forgot the endif's


" I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln

Share this post


Link to post
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
Sign in to follow this  
Followers 0