12-28-2012, 02:59 AM
AND THE ANSWER IS!!!:
So simple once you get it right!
The reasons this took me forever:
- you can have a space after the :=, but not before it, sometimes I had that wrong.
- ? does not replace a single char as I thought, actually that is '.'
- '.*' does replace any sequence of chars
- I don't know if RegExpWndTitle:= would have done it too, but text:= works, and I'm too tired of experimenting to find out if that was a problem.
- Sometimes I was using :=New, but the actual text was :=&New
Stupid little details can cause so much havoc...this is why I never want to be a programmer again...
Maybe I was talking to myself here...but in case anyone cared I thought I'd post the answer that drove me nuts for 2 days...
Random
Code:
Dialog("text:=Mywin.*").WinButton("text:=&New").Click
The reasons this took me forever:
- you can have a space after the :=, but not before it, sometimes I had that wrong.
- ? does not replace a single char as I thought, actually that is '.'
- '.*' does replace any sequence of chars
- I don't know if RegExpWndTitle:= would have done it too, but text:= works, and I'm too tired of experimenting to find out if that was a problem.
- Sometimes I was using :=New, but the actual text was :=&New
Stupid little details can cause so much havoc...this is why I never want to be a programmer again...
Maybe I was talking to myself here...but in case anyone cared I thought I'd post the answer that drove me nuts for 2 days...
Random