thebananaman Posted August 10, 2005 Report Share Posted August 10, 2005 Hi I'd like to create a macro with a certain function: When a certain coloured pixel comes on screen, the mouse is moved over the pixel and double clicks it, would this be possible?, it's part of a little project I'm working on, and I need something to perform that type of task, repetetively, so I'd have to loop it, but I should be able to figure that out myself Another point, I've discovered the Get Pixel Color macro, but I can't figure out how to actually get the pixel colour info, could anybody explain/link me to an explanation on how to do that? If I can't get a macro to perform that task, could somebody please direct me to a program, or script that can? I'm a self-confessed newb at this kinda thing Thanks in advance Quote Link to comment Share on other sites More sharing options...
joe Posted August 10, 2005 Report Share Posted August 10, 2005 Welcome to the group Bananaman! You can use the Mouse Move command to place the mouse at any given coordinate on the screen. In your case, you would place it at the same coordinates as the Get Pixel Color command. I can't figure out how to actually get the pixel colour infoNot sure what you are asking here. Quote Link to comment Share on other sites More sharing options...
thebananaman Posted August 10, 2005 Author Report Share Posted August 10, 2005 I can't figure out how to actually get the pixel colour infoNot sure what you are asking here. Sorry if I wasn't clear, and sorry again if I'm still not clear , I create a macro which has the Get Pixel Color command in it, I assign it to the numerical value N1, and I then place the mouse over the pixel, and press the shortcut key to run the macro, then nothing happens, I assume the macro has recorded the pixel color information, but how would I view it? Could I use the Mouse Move command to place my mouse at the coordinate where a certain pixel color is found? And is there a function to search the screen for a certain color? It's almost like those old online gaming hacks, where you'd see some people as bright red, and the mouse would move to that spot, but no, I'm not trying to make a hack Thanks for the help All the other macro's I've made using this, no problems, but this one's a bit more complicated, and I'm not sure I, or the program can do it Quote Link to comment Share on other sites More sharing options...
floyd Posted August 10, 2005 Report Share Posted August 10, 2005 I assume the macro has recorded the pixel color information, but how would I view it? I find it easiest to view the status of variables from within the Debug Window. Open the Scripting Editor and then choose Debug -> Debug Window -> Variable Values from the main menu. And is there a function to search the screen for a certain color? No there is not. You would instead, use the Get Pixel Color inside nested Repeat Loops to scan each pixel. Depending on your screen resolution, a single scan could take some time to finish. Quote Link to comment Share on other sites More sharing options...
paul Posted August 11, 2005 Report Share Posted August 11, 2005 You can use the Mouse Locator tool to move the mouse to the desired pixel manually and see what the value of this pixel is (use the first value, not the second). Then insert this value into your code. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.