Joe J
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Joe J
-
-
I have been using Macro Express Pro 4 to help me navigate my medical record software. However, I am having difficulty creating one of the macros and seek your advice/assistance.
Using the up and down arrows I am able to highlight (in green) each individual drug. I can then use the spacebar to place a check box beside the medication listed. However, to click on the information icon (blue “i”) I have to use the mouse to hover over it (i.e. there is no keyboard short cut available).
Is there a way to create a macro that looks for the green highlighted area and then the blue “i” icon located within the green area and moves the mouse over it?
- Green Pixel Color = 11141041
- Blue Pixel Color = 12284784
Note: the green highlighted area will always be random distances from the top left of the active window, however the location of the blue “i” icon will always be in the same location within the green highlighted area. At any given time there could be multiple checked boxes within the active window, but there will always be only one green highlighted area.
Unfortunately, I have carpal tunnel in my right hand and therefore need to eliminate all unnecessary mouse activities.
Thank you in advance for you help.
Joe
P.S. After reviewing some of the other discussion forums, is it possible to do a vertical pixel search (as all of the blue "i" icons line up) and if a green highlighted pixel is found, move the mouse to the blue "i" icon directly below?
Move mouse to a specific color (pixel) within a highlighted area
in Macro Express and Macro Express Pro
Posted
Thank you for your response. Unfortunately, there are no keyboard keys available within the program.
I did find the following (from ACantor) within the discussion forum from a few years back.
Joe
<VARIABLE SET INTEGER Option="\x00" Destination="%x%" Value="100" _COMMENT="Initial x coordinate"/>
<VARIABLE SET INTEGER Option="\x00" Destination="%y%" Value="300" _COMMENT="Initial y coordinate"/>
<VARIABLE SET STRING Option="\x00" Destination="%TargetColour%" Value="255" NoEmbeddedVars="FALSE" _COMMENT="Target pixel colour 255 = RED of the words \"Macro Stop\" in the MEP \"Script Editor\""/>
<COMMENT/>
<REPEAT START Start="1" Step="1" Count="400" Save="FALSE"/>
<MOUSE MOVE Option="\x01" X="%x%" Y="%y%" _PROMPT="0x000A"/>
<GET PIXEL COLOR Option="\x00" Rel_To_Screen="TRUE" Destination="%PixelColour%"/>
<IF VARIABLE Variable="%PixelColour%" Condition="\x00" Value="%TargetColour%" IgnoreCase="FALSE"/>
<MACRO STOP/>
<END IF/>
<VARIABLE MODIFY INTEGER Option="\x07" Destination="%x%" _COMMENT="Increase the value of x by 1"/>
<END REPEAT/>