Jump to content
Macro Express Forums

Drop Down Lists


renee

Recommended Posts

I have a Macro that goes to a drop down list. The item I want is Pharmacy Controlled. I have the macro written to type P (hits Pharmacy Non-Controlled) and then arrow down. I did have it hit P, P but it would go back to Pharmacy Non-Controlled more often then not).

 

Well suddenly it's going to X-ray. So I rewrote the macro to go home first at the very top of the drop down list. then type in P, then arrow down.

 

Is there a easier way for me to get the macro to hit the correct drop down item more consistently?

 

My dr. that uses this all the time, has it happen to her often. I finally got it to do it to me (selecting X-Ray rather than Pharmacy Controlled), and it was like the cursor for the dropdown was in the middle of the drop down lists when it got to that point in the macro, thus the reason for me adding "Go home" in the macro. I have a 2 second delay between all the commands.

 

Any help is more than appreciated! - Renee

Link to comment
Share on other sites

I'm assuming that there are no built-in shortcut keys, or any way to select the menu item other than arrowing to it or clicking on it? (User-friendly interfaces seem so rare...)

 

You could always try using the mouse, using the mouse locator to find the position of the item on the menu relative to the window, then giving it those coordinates in a Mouse Move and then Mouse Click command.

Link to comment
Share on other sites

Rene,

 

In the macros that I use to select from a drop down list I make sure to go to the top before I make the selection.

 

In one field the topmost item begins with '<' as in '<not selected>'. This is easy to handle. I just do a Text Type '<' and then Text Type 'P'. This works if the list is in alphabetical order and the first letter of the topmost item is unique (substituting P with the actual first letter of the item I want to select).

 

However, if the first item in your list is something like 'Alfalfa' and the next item is 'Apple' then you will have to do something different. To overcome this do a Text Type 'A' followed by one Text Type <Arrow Up> for each item with the same first letter as the topmost item. For example, suppose the first item on your drop down list starts with the letter A and there are 5 items that start with A then your macro would look something like this:

Text Type: A
Delay 0.1 Seconds
Text Type: <ARROW UP><ARROW UP><ARROW UP><ARROW UP><ARROW UP>
Delay 0.1 Seconds
Text Type: P

If your drop down list is not alphabetized then you would need to find another way to make sure the topmost item is selected.

Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...