Ahhh, thank you wolf! That's
Mason, I had already tried something like that. Maybe I need to update my AHK version? It kept complaining about not being able to find the initial If when I did as you're suggesting.. and when I tried to have the bracket on the same line as the If.
Edit: Okay.. after putting the snippit into actual testing (and getting some sleep which I'm sure made a difference), I wanted to ask, is there a way to have it output the variable as plain text, or skip it if nothing is found? Like..
Code: Select all
TrayTip, Test, % "I am seeing " (var1? "%var1%" : "nothing") " on screen currently."
where Var1 is set earlier in the code via ImageSearch functionality, up to 3. Or do I have to break that up into 3 separate variables and have the traytip check for each? Trying to avoid the latter because that just feels like sloppy code. =\