Im trying to match some text from inside a window but it never seems to match.
GetWindowText>window_name,output_text
If>output_text=*Confirm bill*,label1
Basically, the statement above is never true; Yet the output_text variable contains "Confirm bill" in the middle of the string. What is the best way to go about this.
This is the actual value of %output_text% (from MessageModal):
OK
Cancel
Confirm bill processing for the 10 selected visits?
Using If with wildcards
Moderators: JRL, Dorian (MJT support)
Hi,
Like this:
GetWindowText>window_name,output_text
Position>Confirm bill,window_name,1,p
If>p>0,label1
i.e. if starting position of substring 'Confirm bill' within string window_name is greater than zero (zero would mean it doesn't exist in the string at all) then go to label 1, else continue.
Like this:
GetWindowText>window_name,output_text
Position>Confirm bill,window_name,1,p
If>p>0,label1
i.e. if starting position of substring 'Confirm bill' within string window_name is greater than zero (zero would mean it doesn't exist in the string at all) then go to label 1, else continue.
MJT Net Support
[email protected]
[email protected]