This is really odd - I wonder what could cause this. As probably noticed from my other two postings, I am struggling with creating a script for Oracle/Java applications. Besides having no control over the "Java windows" (the ones created temporarily "inside" the browser), as far as focus/title goes (for which I am just putting long delays in, to make sure they're up, eventually), I have also run across a very weird problem: I want to access the main menu of a browser window (for which I have control over), and a sequence like this:
Press ALT
Send Character/Text>ta
Release ALT
gives me, under W2K, the menu option whose highlighted letter is "t", then its submenu option whose highlighted letter is "a".
Under Windows NT, though, the ALT seems to highlight the first menu option, and opening it (which option is - usually - "File"), even though File has highlighted - obviously - the letter "f"!!! Does anybody know why this happen, and how could I avoid it?!?
Thx,
Stef
Windows NT ALT + menu letter not working (works in W2K)
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:
Just a few thoughts...............I have also run across a very weird problem: I want to access the main menu of a browser window (for which I have control over), and a sequence like this:
Press ALT
Send Character/Text>ta
Release ALT
gives me, under W2K, the menu option whose highlighted letter is "t", then its submenu option whose highlighted letter is "a".
Under Windows NT, though, the ALT seems to highlight the first menu option, and opening it (which option is - usually - "File"), even though File has highlighted - obviously - the letter "f"!!! Does anybody know why this happen, and how could I avoid it?!?
For a moment, forget the OS, and provide some info on the browsers. There may be differences.
What browser and version are you using on the NT system?
What browser and version are you using on the 2K system?
It may be necessary to put a Wait>n value after the Press ALT Key.
It may be necessary to split the "t" and the "a" commands with a Wait>n.
You may also want to look at using SK_DELAY, I have found that setting Let>SK_DELAY=2 has worked well for me on many scripts. I usually use that as a default on all scripts.
Also note that some ALT keys may be Case Sensitive on different programs.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
IE 5.xx on bothFor a moment, forget the OS, and provide some info on the browsers. There may be differences.
What browser and version are you using on the NT system?
What browser and version are you using on the 2K system?
I didIt may be necessary to put a Wait>n value after the Press ALT Key.
Did that, alsoIt may be necessary to split the "t" and the "a" commands with a Wait>n.
Set it up for 2, prior to postingYou may also want to look at using SK_DELAY, I have found that setting Let>SK_DELAY=2 has worked well for me on many scripts. I usually use that as a default on all scripts.
All are lower caseAlso note that some ALT keys may be Case Sensitive on different programs.
I did all of the above, based on a previous posting of yours and lumumba (?!? - sorry if I got the name wrong), that I found somehow related.
Here is more to the oddity: I said - OK, let's assume I always get to the FIle menu option - so, based on this assumption, I started looking for the menu entry not by using letters, but rather the directional keys (e.g. my t menu entry was the fourth after the File one, so I Press Right * 4, and my a one was the third down, after getting to the horizontal position, so I did Press Down * 3 - and still didn't work (I get like three spaces to the right, for four times the Right key, and only one for three times the Down key ...
Thank you for your suggestions - I think I will have to try increasing the timings (I did Waits of 2-5 sec ... perhaps more?!? - sounds really odd, though, besides the fact that my macro is to be used in conjunction with time stamps and network measurements, so it could really become ... useless ...
Thx again,
Stef
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
You may also have to press Right more than 4 times. (You may have already considered that too, but this info may be helpful to someone else).I started looking for the menu entry not by using letters, but rather the directional keys (e.g. my t menu entry was the fourth after the File one, so I Press Right * 4,
Some of the first three choices may actually have sub menus that will expand to the right, taking up one or more of the "right" moves. So be sure to count the "right"s that are needed slowly, allowing for each horizontal menu to pop up and be processed. The macro won't wait for the popup to show, but it will be there.
Also be sure that both systems have the same Browser Add-ins and options, or the sub menus may also be different. Again, this may affect how many "rights" are needed.
Another concern, does your menu system use Microsoft's Horrible Menu Feature that only shows the most recent choices on your menus? This can also be different each time you run, again affecting the counts.
Re using Press>Right*4, again, perhaps you need a separate Wait>n between each Press>Right, making four commands vs. one?
All in all, I would try to keep working for a true Key Value like your original posting.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!