Fi0da Posted February 9, 2009 Share Posted February 9, 2009 After reading numerous posts about problems with capture of colors, but not search the help successfully. My problem is ... When I put the mouse on the screen of the game, got the information coordinator turer X & Y fine, but can not classify the background color of the screen. 0000000 always appears as if that image does not recognize I am doing something wrong? Thank you for answers. & Congrats for this cool forum. I read ... I update ... I learn ... Link to comment Share on other sites More sharing options...
Pain Posted February 9, 2009 Share Posted February 9, 2009 Take a look at http://en.wikipedia.org/wiki/Video_overlay because you never mentioned the games name we can only speculate what's causing it. Link to comment Share on other sites More sharing options...
Fi0da Posted February 10, 2009 Author Share Posted February 10, 2009 Rewording my question ... I need to know if there is a possibility that the mouse capture the object (color) automatically ... ie. In the mouse stopped at any point of the screen, which arise when the object (color) at another point on the screen the mouse goes directly to the spot color? grateful for the responses and a strong hug I read ... I update ... I learn ... Link to comment Share on other sites More sharing options...
Fi0da Posted February 10, 2009 Author Share Posted February 10, 2009 Rewording my question ... I need to know if there is a possibility that the mouse capture the object (color) automatically ... ie. In the mouse stopped at any point of the screen, which arise when the object (color) at another point on the screen the mouse goes directly to the spot color?grateful for the responses and a strong hugNo one??? I read ... I update ... I learn ... Link to comment Share on other sites More sharing options...
TheOnlyOne Posted February 10, 2009 Share Posted February 10, 2009 No one??? i normaly take a screenshot and then find the color from there maby that wil work Link to comment Share on other sites More sharing options...
Fi0da Posted February 10, 2009 Author Share Posted February 10, 2009 i normaly take a screenshot and then find the color from there maby that wil work hmm ok ill try this...tkx for idea...Now my 2nd quest...if the mouse can to go to a target colored when to appear in screenOr i need to define the way of square???Sry for noob questions ¬L¬ I read ... I update ... I learn ... Link to comment Share on other sites More sharing options...
Pain Posted February 10, 2009 Share Posted February 10, 2009 PixelSearch combined with MouseMove?Returns a two-element array of pixel's coordinates. Link to comment Share on other sites More sharing options...
Fi0da Posted February 11, 2009 Author Share Posted February 11, 2009 While 1 Sleep(30) $coord = PixelSearch(400, 200, 1130, 585, 0xFF0000) If Not @error Then MouseMove($coord[0], $coord[1], 0) MouseClick($coord[0], $coord[1], 0, 0) EndIf WEnd @Dear Pain... MuOnline is a online game . This Script run in a SS, but, in the game not run . When i freeze and printscreen...the Infowin (Scite) show me all color codes, also show me coordinator ....but in real game...That Infowin only show the exactli coordinator but not show the colors in apoint mouse. I understand that if the application Infowin (SciTE) does not identify the colors in the game, then the script will also not identify. Just what is missing to run my bot Thankx for reply man I read ... I update ... I learn ... Link to comment Share on other sites More sharing options...
Pain Posted February 11, 2009 Share Posted February 11, 2009 (edited) It worked? I can't see how, atleast not the code you posted. Take a look at MouseClick in the helpfile. While 1 Sleep(30) $coord = PixelSearch(58, 83, 435, 585, 0xFF0000) If Not @error Then ;MouseMove($coord[0], $coord[1], 0); no need to have this, mouseclick will move the mouse too. MouseClick("left", $coord[0], $coord[1], 1, 0) EndIf MouseMove(0, 0, 0); move the mouse to the upper left corner. change this. WEnd I think MouseClickDrag is what you are looking for. Edited February 11, 2009 by Pain 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