Cannot match window names in Vista
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Cannot match window names in Vista
Vista Home edition, Firefox 2.0.0.8, Macro Scheduler 9.2.0.1
I developed a complex script going through hundreds of web pages. It was developed on XP Pro system, and then found it was for Vista. No problem, I expected a few adjustments.
But...I am unable to use commands with WindowName, because I keep getting a message that Windows cannot find the window named "abcdefg".
But the browser window is open, it visually matches the name in the message. So I used Macro Scheduler tool for View System Windows. Looks the same. Used the feature to copy the name of the object, and pasted it into the script. Same result.
Other Vista issues, probably not related....
1. Could not update scripts because I needed to set Sharing and Permissions on the MJT folders.
2. Cannot make remote connection using Remote Admin 3.0.1, but outgoing is OK.
3. Cannot make folder options (like show file extensions) Apply to All Folders.
4. Some programs/commands trigger nag windows to authenticate usage, see no way to disable them, but I am sure it can be done.
Most of these items listed above look like security/permissions issues that I can track down (currently working with Admin rights ... so confusing). But I mention them in case someone knows of a connection. Again, the major problem is how to stop message that window cannot be found?
Thanks for any suggestions.
I developed a complex script going through hundreds of web pages. It was developed on XP Pro system, and then found it was for Vista. No problem, I expected a few adjustments.
But...I am unable to use commands with WindowName, because I keep getting a message that Windows cannot find the window named "abcdefg".
But the browser window is open, it visually matches the name in the message. So I used Macro Scheduler tool for View System Windows. Looks the same. Used the feature to copy the name of the object, and pasted it into the script. Same result.
Other Vista issues, probably not related....
1. Could not update scripts because I needed to set Sharing and Permissions on the MJT folders.
2. Cannot make remote connection using Remote Admin 3.0.1, but outgoing is OK.
3. Cannot make folder options (like show file extensions) Apply to All Folders.
4. Some programs/commands trigger nag windows to authenticate usage, see no way to disable them, but I am sure it can be done.
Most of these items listed above look like security/permissions issues that I can track down (currently working with Admin rights ... so confusing). But I mention them in case someone knows of a connection. Again, the major problem is how to stop message that window cannot be found?
Thanks for any suggestions.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Bob,
I've been running Vista for over a year with absolutely no issues running Macro Scheduler scripts - new and old. No issues at all with window names. My main machine is Vista and Macro Scheduler has been developed under Vista since Vista was in beta.
File permissions - with Vista's default settings you CANNOT write to the program folders. But this is also true of a locked down XP system. And it is for very good reason. This is why Macro Scheduler now defaults to using the Documents\Macro Scheduler folder for storing macros.
People upgrading Windows XP to Windows Vista who already have an old copy of Macro Scheduler installed that uses the program folder, may encounter an issue and would need to adjust settings. But if installing Macro Scheduler anew on a Vista box you will have no problems.
The nag windows you refer to are UAC (User Account Control prompts. By default Vista runs all apps at regular user privs. Even if you are an administrator. Anything that requires Admin privs will pop up a UAC warning. This is a superb new feature which will drastically cut down on the amount of spyware and malware that previously was able to install itself without warning.
Google UAC and you will find a LOT of information. It's a somewhat controversial topic. Personally I think it's a great move. It's about time everyone wasn't running everything in Windows at full privileges all the time.
If you have a script/exe that needs to control an admin process you can either:
1) Run Macro Scheduler or the EXE with Admin privs (Right click and Run as Admin, or modify shortcut to always run as admin).
2) You could disable UAC altogether - Control Panel/Administrative Tools/Local Security Policy. But this is NOT recommended for regular users.
Here's an easy way to switch UAC on and off:
http://www.tweak-uac.com/
I've been running Vista for over a year with absolutely no issues running Macro Scheduler scripts - new and old. No issues at all with window names. My main machine is Vista and Macro Scheduler has been developed under Vista since Vista was in beta.
File permissions - with Vista's default settings you CANNOT write to the program folders. But this is also true of a locked down XP system. And it is for very good reason. This is why Macro Scheduler now defaults to using the Documents\Macro Scheduler folder for storing macros.
People upgrading Windows XP to Windows Vista who already have an old copy of Macro Scheduler installed that uses the program folder, may encounter an issue and would need to adjust settings. But if installing Macro Scheduler anew on a Vista box you will have no problems.
The nag windows you refer to are UAC (User Account Control prompts. By default Vista runs all apps at regular user privs. Even if you are an administrator. Anything that requires Admin privs will pop up a UAC warning. This is a superb new feature which will drastically cut down on the amount of spyware and malware that previously was able to install itself without warning.
Google UAC and you will find a LOT of information. It's a somewhat controversial topic. Personally I think it's a great move. It's about time everyone wasn't running everything in Windows at full privileges all the time.
If you have a script/exe that needs to control an admin process you can either:
1) Run Macro Scheduler or the EXE with Admin privs (Right click and Run as Admin, or modify shortcut to always run as admin).
2) You could disable UAC altogether - Control Panel/Administrative Tools/Local Security Policy. But this is NOT recommended for regular users.
Here's an easy way to switch UAC on and off:
http://www.tweak-uac.com/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Thanks for the feedback Marcus.
I am getting up to speed with Vista slower than I want, but am making progress. I am now familiar with the nag screens, and will have to modify the scripts to handle that. I am inclined to disable that "feature" because I am comfortable about the installed antivirus/anti malware/firewalls, etc.
And I did figure out the security on the new folders and their permissions.
But, as noted, my real problem is the messages coming back that the window name is not present, when I can see it, and Macro Scheduler Windows tools show it also. And I can't see any relationship between that problem and the other Vista "nuisances" that I am working through.
I am getting up to speed with Vista slower than I want, but am making progress. I am now familiar with the nag screens, and will have to modify the scripts to handle that. I am inclined to disable that "feature" because I am comfortable about the installed antivirus/anti malware/firewalls, etc.
And I did figure out the security on the new folders and their permissions.
But, as noted, my real problem is the messages coming back that the window name is not present, when I can see it, and Macro Scheduler Windows tools show it also. And I can't see any relationship between that problem and the other Vista "nuisances" that I am working through.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
-
- Junior Coder
- Posts: 24
- Joined: Mon Nov 01, 2004 1:30 pm
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
For pggriffin ---
All the windows names have *, That is how the original script began. I don't think I have ever not used the *, but thanks for asking.
Actually I have tried with and without the * for this problem. As noted earlier, I used the MS Windows tool and copied the full exact name into the script, without success
For thaumaturgy ---
Re: a space right after the setfocus
Not sure what you meanabout a space. Are you suggesting Send>spacechar ?
Re: try changing your display setting say from " Vista Basic " to " Classic View " to see if that makes a difference. I have not done that.
I probably will not have access to the system before Monday, but will let you know if suggeestion(s) work out.
All the windows names have *, That is how the original script began. I don't think I have ever not used the *, but thanks for asking.
Actually I have tried with and without the * for this problem. As noted earlier, I used the MS Windows tool and copied the full exact name into the script, without success
For thaumaturgy ---
Re: a space right after the setfocus
Not sure what you meanabout a space. Are you suggesting Send>spacechar ?
Re: try changing your display setting say from " Vista Basic " to " Classic View " to see if that makes a difference. I have not done that.
I probably will not have access to the system before Monday, but will let you know if suggeestion(s) work out.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
-
- Junior Coder
- Posts: 24
- Joined: Mon Nov 01, 2004 1:30 pm
For thaumaturgy ---
Re: a space right after the setfocus
Not sure what you meanabout a space. Are you suggesting Send>spacechar ?
Yes, I've seen things work that make me scratch my head and wonder why but if they work consistantly I'm happy.
Hate to throw another obvious one at you but here it is.....a space between the end of the title and the star like so:
ABC * instead of ABC*
Re: a space right after the setfocus
Not sure what you meanabout a space. Are you suggesting Send>spacechar ?
Yes, I've seen things work that make me scratch my head and wonder why but if they work consistantly I'm happy.
Hate to throw another obvious one at you but here it is.....a space between the end of the title and the star like so:
ABC * instead of ABC*
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact: