Jump to content
Macro Express Forums

Get Pixel


Recommended Posts

I have a question. I tried to capture a button using the "Get Control" command. However the control command does not zoom in on the button itself rather it captures the whole toolbar instead.


I tried my hand at "Get Pixel Color" and obviously tried to capture the pixel color using specific coordinates relative to screen and get the mouse to move there. The mouse went into a completely different direction than what I had as to the coordinates in "X,Y".


I tried to read the old forum info on this but it only got me more confused.


This should be real easy, but I think I am missing something. All I want to do is have the mouse button get me to a database button on a toolbar on top of the screen underneath the Window Title Bar. It's a little piece of real estate on the screen I need to capture the pixel color and get the mouse to move to. I want it to go there only if a certain program is running(which is the easy part).


Any help would be greatly appreciated.





Link to comment
Share on other sites

  • 2 weeks later...


Here's a bit of code I use to click on the second tab of a tab bar.

// Click tab 2 (120,10).

Mouse Single Left Click on Control %C93%

<REM2:Click tab 2 (120,10).><CCLICK:T:93:0:F:000120,000010><

The second tab is roughly 120 pixels from the far LEFT (X coordinate) and I chose 10 pixels down (Y coordinate) from the top of the tab control to "hit" the middle of the tab." Be sure to check Relative to Control in the Movement section of command Mouse Move.

Hope it helps. :)


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.

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.

  • Create New...