|
Hi,
Is it possible to get the "&" symbol to be accepted by the search ifinstring.
ifEqual would also work. The string is "&Local" and I just want to verify that some or all of the string is there to verify that a window is active (that has the same title as all the other windows in the printer wizard).
The error is below:
Error: This variable or function name contains an illegal character. The current thread will exit.
Specifically: &Local
Line#
030: }
031: Else
032: {
033: Send,{enter}
034: WinWaitActive,Add Printer Wizard
035: WinGetText,local_printer
036: StringLeft,window2,local_printer,6
---> 037: IfInString,%window2%,"Local"
038: {
039: MsgBox,The script has not found window (2) in the printer wizard
040: }
041: Else
042: {
043: Send,!l
044: PixelGetColor,window2_untick_auto_detect,70,153
Any other advice on how to tidy up the script would also be nice,
Thanks,
Staid.
|