Move focus to text field in application window

In Quicken (mac) Iwould like to have KM put focus on a particular text field inside a sub window to allow a text entry in that field.

eg: When I have several transactions selected in a register I want the following actions to take place:

cmd+I
change focus to text field for Tags
type D in that text field
close window

any suggestions?

You will know how to do steps 1, 3 and 4, so that leaves step 2, "change focus to text field for Tags".

I do not use Quicken, but a quick Web search reveals that:

You can access the Tags List by going to Tools menu → Tags List or using Ctrl+L. This will bring up the Tag List window.

Using the Tag  List

However, note that that is the Windows section of the Quicken "info" site, and I couldn't see the Mac section. I would guess that you would need to use ⌘-L on a Mac.

If that is the field you want to access, and that is the right hotkey, you can therefore use the same method as in the other steps to activate a key press, or else you can use a Select or Show a Menu Item action.

If it wasn't the tag list that you wanted, or you get stuck, let us know, of course.

Thanks for the reply. But that's not what I was looking for.

I want to use a single shortcut key squence to complete all four lines in my request. Everything I've tried requires me to manually select the input text area and then enter my tag.

Is there any other way to activate that field? A menu item, a shortcut, can you Tab to it (and if so can you always start at the same place so it's the same number of Tabs, or is there another way to detect that you're in the right field)?

Failing the above, is the text field always in the same position relative to some corner of the window (click at coordinate to activate) or can you use image detection to pinpoint it?

Create your macro do to the following in Quicken:

  1. Send Keystroke: Command-I.
  2. Pause 0.25 seconds
  3. Repeat these commands 5 times:
    • Send Keystroke: Tab
    • Pause: 0.05 seconds
  4. Send Keystroke: D
  5. Pause 0.25 seconds
  6. Send Keystroke: Command-W.

The pauses are guesstimates, and may not even be necessary. But with the window open, five presses of Tab should get you to the Tags input box.

-rob.

1 Like

Yes, of course, but I have mentioned that you should already know how to do that part, and I expect you do. (Chaining actions and assigning a hotkey are among the basic skills required for using Keyboard Maestro, so if you are an absolute beginner, start your journey with the resources linked to in the Help menu within the Editor, such as the Quick Start page, before getting out of your depth with answers in this forum).

If I didn't make the underlying point clearly enough, I hope you got how @Nige_S has now worded it, or to put it yet another way: find out what interface options there are to access that field, and there may well be an action in KM that can access it too.

@griffman seems pretty confident in his answer, so I hope it does fit your situation.

I have and use Quicken regularly, and tested my version of the macro here and it seemed to run fine. But I chose not to share it directly, as it's a great learning macro given there's nothing overly complicated in it.

-rob.

1 Like

Thanks for the suggestions. I will impement the multiple tab to the the text field.

What I didn't include in my original request was that there are two different "get Info" windows in Quicken. One when a single transaction is selected and another one when multiple transactions are selected. The location of the tag text field is a different number of tabs in each one. I hoped that there was a way to go directly to the tag field without counting tabs.

I quess I'll create a macro for each case instead of using one for both.

Thanks for the help.

Stuart

You can use some menu-based intelligence to do it in one macro. In Quicken with the Info window open, if you have one transaction selected, then the Transactions → Delete menu item is available. If you have more than one transaction selected, it isn't available.

So this demo macro sets the repeat count based on whether or not that menu is enabled. This isn't your full macro, of course, but it worked here in testing for both single and multiple transaction selections:

Go to Tags field.kmmacros (4.2 KB)

-rob.

1 Like

Wow, that looks interesting. What a way to take advatage of seemiling unrelated information.
Thanks,

Stuart

It's a pretty standard Keyboard Maestro technique: Any time you can find something that's different in condition 1 versus condition 2, and that thing is something Keyboard Maestro can work with, well, you've got yourself a great candidate for a conditional statement :).

So I spend a fair bit of time looking for menu item changes when I do something in an app, just to see if there's anything I can use in whatever macro I'm working on.

-rob.