try this would be easier for you to do yourself .Color may not be exactly red .It maybe a shade of red.Anyways
on qm window click file then new then new macro
then on qm floating toolbar on main window click Windows,controls button
then in menu click Find image, wait
it will open up the Find image dialog
in first combo-box on left select
wait till image disappears from list
in combo-box below it select
Color of single pixel from list
have the window you are trying to work with open and visible
then click capture button on find image dialog window .follow instructions
after capture is done put a check mark in window can be in the background
click test to see if it is working
then click ok u should have something like this
Gintaras has tried to make creating macros easy for all of us
Macro
Macro4
int w=win("Document - WordPad" "WordPadClass")
wait 0 -S "color:0x69CAFF" w 0 0x100
then after that code add on a new line add
It is really easy.Just take some time to get familiar with qm and how it works