kellan4459
IS-IT--Management
I am trying to get a better understanding of how WaitWindow uses a string. I have several WaitWindow calls that are working properly but then one doesn't work. The only thing that looks different is it has a dash (-) in it. I have tried escaping the dash with a backslash (\) and several other string manipulations but nothing seems to work.
I define the strings
$SL = "FLAR Login";
$TE = "LAR Explorer";
$TN = "Query By LAR Num";
$TI = "LAR - Information";
then I have a call for each in the code
die "could not open FLAR" unless WaitWindow($SL, 15);
the code continues until I get to the $TI attempt of the die/unless lines. I have tried removing all but LAR from the $TI and it still will not match it. I got the Window name using Spy++.
I have tried looking at the documentation to see how the WaitWindow uses the passed string but I was unsuccessful. Anyone experienced with the use of WaitWindow?
I define the strings
$SL = "FLAR Login";
$TE = "LAR Explorer";
$TN = "Query By LAR Num";
$TI = "LAR - Information";
then I have a call for each in the code
die "could not open FLAR" unless WaitWindow($SL, 15);
the code continues until I get to the $TI attempt of the die/unless lines. I have tried removing all but LAR from the $TI and it still will not match it. I got the Window name using Spy++.
I have tried looking at the documentation to see how the WaitWindow uses the passed string but I was unsuccessful. Anyone experienced with the use of WaitWindow?