cainn82 Posted April 24, 2008 Share Posted April 24, 2008 (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 April 24, 2008 by cainn82 Link to comment Share on other sites More sharing options...
flip209 Posted April 24, 2008 Share Posted April 24, 2008 (edited) CODEWhile 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: CODEWhile 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 April 24, 2008 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 Link to comment Share on other sites More sharing options...
cainn82 Posted April 24, 2008 Author Share Posted April 24, 2008 the first part of the code did work but when the trade window poped up it just sat there thanks for your help flip Link to comment Share on other sites More sharing options...
flip209 Posted April 24, 2008 Share Posted April 24, 2008 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 Link to comment Share on other sites More sharing options...
cainn82 Posted April 24, 2008 Author Share Posted April 24, 2008 edit the yes button Link to comment Share on other sites More sharing options...
Swift Posted April 24, 2008 Share Posted April 24, 2008 Hey Cainn, it'd be a good idea to remove your password from the script. Link to comment Share on other sites More sharing options...
cainn82 Posted April 24, 2008 Author Share Posted April 24, 2008 lol your right and i changed my password lol Link to comment Share on other sites More sharing options...
flip209 Posted April 24, 2008 Share Posted April 24, 2008 (edited) the first part of the code did work but when the trade window poped up it just sat there thanks for your help flipHow log did you wait? Cause you have a sleep of a minute? Maybe try this...CODEWhile 1If PixelGetColor (636, 506) <> (13624556)mousemove (1031, 487)mouseclick ("left")send ("sell")mousemove (1040, 513)mouseclick ("left") ;; Send message.endifif PixelGetColor(636, 506) = (13624556)mousemove (614, 471)mouseclick ("left")endifSleep(100)WEnd Edited April 25, 2008 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 Link to comment Share on other sites More sharing options...
flip209 Posted April 25, 2008 Share Posted April 25, 2008 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now