OK, that took awhile to figure out. Sorry, but I can be very dense when it comes to programming. I get tripped up by many things. It takes me a great deal of trial and error to find the solution. Luckily, I usually have a great deal of patience. I could ask a question, but if you ask a question that is just to stupid, people will blow you off, and there goes the help you needed.
Anyway, I learned a few things, and that is something that usually comes with trial and error.
The original issue was, you used the wrong code for the solution. Not your fault though, but since I'm a bit dense when it comes to this stuff, I missed the obvious.
This is the correct code:
{EXP:'{TXT:ACTIVEWINDOWTITLE}' LIKE '*Opera' And NOT '{TXT:ACTIVEWINDOWTITLE}' LIKE '*Edit*'}
Your code was checking if both Opera and Edit was in the title, instead of making sure that just Opera was in the title.
Again not your fault. I should have noticed, and I eventually did.
First I tried the first example you gave me, and didn't work, so, I tried the second. Honestly, it made my head hurt just trying to read, I had no idea what was going on it.
Tried many things, and it still didn't work. So, I figured, you did something wrong, or what you did, just wasn't working for me. So, I started trying to build it from scratch. Which meant, I had to learn what each line did, and why.
I kept trying different things, then I figured out how to send what was in the Variable to a file so I could see if it was even removing the Single Quotes or not, and since there were 2 of them, was it removing both. I had actually made the command to run twice just to get both Quotes, just in case, that was what made me try to send the Variable to a file.
The file showed, that the Quotes were gone, I even redid it, without the second removal, and it still got both Quotes. I was like great, that works, now why doesn't the whole thing work. I saw it had Comma's, so, I removed them as well.
Nothing
I was going to do Periods next, but I saw VA didn't have a problem with Periods.
I then made the file into a Variable . and that didn't work. Then it came to me. NOT was not in the equation. That's why it wasn't working. So, I added NOT, bam, it worked.
So, I added it to my Auto Switch command, and problem solved. Jeez
Anyway, I learned a lot today, and I love the feeling, when finally, everything works. Thanks for all your help.