Jump to content
Macro Express Forums

How Would I Do This, Possible?


thebananaman

Recommended Posts

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 :P

 

Thanks in advance

Link to comment
Share on other sites

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 info
Not sure what you are asking here.
Link to comment
Share on other sites

I can't figure out how to actually get the pixel colour info
Not 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

:P

 

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 ;)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...