Jump to content
Macro Express Forums

nkormanik

Members
  • Posts

    57
  • Joined

  • Last visited

Everything posted by nkormanik

  1. As things now stand we can look for a color at a particular screen pixel. Please add the allowance to look wider than the single pixel. For example: Anywhere in a 10x10 pixel region. Or anywhere in a 100x100 pixel region. Say, specifically: <REPEAT UNTIL Variable="%N1%" Condition="\x00" Value="15597568"/> <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="1000" Y="500" Destination="%N1%"/> Only covers one single pixel. I'd like to be able to say, if ANY NAVY BLUE is present in a 100x100 square, then move on. If not, keep repeating the 'looking for.' I'd greatly appreciate your assistance. Thanks, Nicholas Kormanik
  2. Thank you, rberq. Appears to be working. Here is the actual code: <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="879" Y="772" Destination="%N2%"/> <VARIABLE SET INTEGER Option="\x00" Destination="%Counter%" Value="0"/> <REPEAT UNTIL Variable="%N2%" Condition="\x00" Value="15790320"/> <WAIT FOR TIME TO ELAPSE Hours="0" Minutes="0" Seconds="1"/> <VARIABLE MODIFY INTEGER Option="\x07" Destination="%Counter%"/> <IF VARIABLE Variable="%Counter%" Condition="\x04" Value="300" IgnoreCase="FALSE"/> <MOUSE MOVE Option="\x01" X="991" Y="579" _PROMPT="0x000A"/> <MOUSE LEFT BUTTON DOWN/> <MOUSE LEFT BUTTON UP/> <VARIABLE SET INTEGER Option="\x00" Destination="%Counter%" Value="0"/> <END IF/> <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="879" Y="772" Destination="%N2%"/> <END REPEAT/>
  3. Below is code presently used: <REPEAT UNTIL Variable="%N2%" Condition="\x00" Value="15790320"/> <DELAY Flags="\x00" Time="10"/> <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="879" Y="772" Destination="%N2%"/> <END REPEAT/> This code waits for a particular color (blue) to appear at a certain pixel. Normally goes great. Colored pixel appears. Macro goes on to next steps. HOWEVER, sometimes server error occurs at other end. Where color is expected is just white only. Macro hangs, waiting, waiting.... What I would like is a way to say: If color does not appear in 2 minutes, then go up and click on refresh button. But continue as before. Hopefully the colored pixel will materialize this time around. If it still does not, go up and click that refresh button again. And wait, once again for colored pixel to come up. Etc. I have this macro running on a computer off to the side. Things generally go smoothly. But sometimes I look over, and server error has occurred. Macro is simply waiting, forever. So I have to reach over and manually click the refresh button. That usually does the trick. Colored pixel shows up. Macro continues as if all is well. Any help greatly appreciated. Nicholas Kormanik
  4. I'm using a "clipboard extender" that holds permanently everything copied to the clipboard. My Macro Express Pro macro, then, copies (Ctrl-C) blocks -- some blocks quite large -- in sequence, one after the other. Let's assume 100 copy actions, 100 blocks. Examining the finished compilation, unfortunately, some blocks are getting dropped. Say, only 79 blocks make it. 21 blocks get dropped. It appears that the next copy action is happening too fast, before the current block (presumably particularly large) is completely copied to clipboard. I've tried various lengths of DELAY -- 2, 4, 8 seconds -- between copy actions. With longer delays, fewer blocks get dropped. What would be ideal, though, would be a DYNAMIC DELAY, that would not proceed to the next copy action until each full block is safely copied into the clipboard, regardless of its size. Does such DYNAMIC DELAY currently exist in Macro Express Pro?? I see there is a "Wait for Control" possibility. Would that be the solution, as opposed to the "Delay" I presently use? Any help will be greatly appreciated. Nicholas Kormanik
  5. I regularly change all the delays to 111 (say), instead of how long they were at the recording. (You know, I often pause various amounts of time between key strokes.....). Often the macros are long, and it takes forever to make all the changes to 111. Is there a way to change all delays at once, to, say, 111, or 1111, etc???? Thanks a lot. Nicholas
  6. I'd like to do the following, in a text editor, using Macro Express: If the character under the cursor is 1, do A; If the character under the cursor is not 1, then do B Is that possible using the current version of Macro Express? Thanks, Nicholas
×
×
  • Create New...