| Newsgroups |
gmane.comp.windows.power-pro |
| Message-ID |
<[email protected]> |
** editted to add more detail on testing ***
There is a blank at the end of the line in the item name c=DocumentWClass. The caption matcher uses all blanks, which may have not been a good idea to implement, although it is documented in the help.
So because of this blank, the item never matched any window, and the commands were never run.
That was tricky bug to find; I used my suggestion of adding a debug test to see if the item was being used and found it never was. Then I tried *This PC as the item name and found it worked. That helped to isolate the issue.
I think it was you I sent a note to asking you (or whomever if it was not you) to try one thing at a time to debug a problem, That's a good skill to have so you can make progress on these issues on your own.
Here tI added the debug was added as first step and the item name changed as the second variation.
If the debug had produced output, I would have tried different variation of the command -- varying the move position, varying the matcher, in quotes, varying the command to say win.caption("autorun"), maybe trying window instead of win.move. I probably would have also tried the win.move("autorun",0,0) under the notepad matcher as well. It appears you did try some of these so that was a good idea. It was varying the matcher in the item name that was missed.