Yep. It can't be the clipboard not updating. As I said, the clipboard is used to get a lot of other vars, and is used many times before it is used for this particular var again. Still this particular var seems sometimes stuck, or jump back, to it's previous value. To be sure the clipboard is emptied and then assigned I started to use the following:
Code: Select all
clipboard =
If clipboard is not space
MsgBox Error! clipboard = %clipboard%.
Send, {Home}{Down 3}^{Right}^+{Left}^c
ClipWait
If clipboard is space
MsgBox Error!
This doesn't seem to help though. As you can see I'm also using ClipWait, the code in the first post wasn't from the actual script, I just wanted to show that it's under a label that's being re-run over and over like a pseudo-loop. For each time it's opens a new url and doing the ^a^c thing. Everything works fine except this var, that fails maybe 1 time out of 20. And I haven't messed up the labels and gotos so that these rows can be missed.