I'd like the cursor to move a line down and a character right when a window opens in an application, but I can't figure out how.
The App opens, I select a action in app that opens a window (that has a specific phrase in the title though the whole phrase changes.. part is consistent)
When that window opens, I'd like the cursor to move from its starting point (always the same in the window – top left of that window) to one line down and one character right so typing begins at the correct place.
And I'd like it to happen automatically (without a hot key) .
After the cursor is moved, I will be entering text at that insertion point (the point of the macro is to leave me at the right spot to enter text without having to mouse to it... many times in a hurry!
Then I will save that window's changes before moving to next task in the program, then open a similar window from another file in main browser where I would expect same macro to run?
I created a dummy Macro Group, which you will need to edit:
EDIT: 2018-07-24 17:59 GMT-5
Give this macro a try. When you import into KM, it will be in this group. Either change this group, or move the macro to your existing group, which is ONLY active when Photomechanic frontmost.
NOTE: This macro will trigger & run every time you switch to another window, and then back to this app with a window with this key phrase: "IPTC info".
MACRO: Move Text Cursor When App Document Opens
#### DOWNLOAD:
<a class="attachment" href="/uploads/default/original/3X/5/4/548fd155ce8c1564e6d0d7661af7e6e60d5a242b.kmmacros">Move Text Cursor When App Document Opens.kmmacros</a> (4.3 KB)
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**
---

---
[quote="jmorris, post:3, topic:10945"]
Then will save that window's changes before moving to next task in the program, then open similar window from another file in main browser where I would expect same macro to run?
[/quote]
Yes, it should, since it will have a different window title.
Hi, upon further review, although working it's not quite what I thought...
If I read you right (and you did say so explicitly... (NOTE: This macro will trigger & run every time you switch to another window, and then back to this app with a window with this key phrase: "IPTC info")...
It requires me to "tap out" of the app and back in to run. Is there a way to have it activate when I open that "iptc info" window without having to go out of Photomechanic and back in when I do so?
So I am in the Photomechanic app, open the "iptc info" window, and the cursor moves as directed, without having to do anything else?
Hi Chris,
Many, many thanks for this follow up, it is indeed working:)
As to having the macro ignore secondary activation, is that necessary to it's working? For me, I don't think I need that, but if it is part of the successful activation, I can use it as is. I typically only go to the IPTC caption once per photo anyway, and if I go back to re edit I wouldn't need the macro.
If I do need the secondary activation check, and if I do need to clear the Processed WindowList variable. any suggestions on how to do this? I am obviously a newbie here:)
It seems to work well and delete the variables also. Please let me know if I did something bad, otherwise it works and will get me started. In my free time I shall try your version also and play with the macro, but for now, a million thanks!
It seems trivial but in my world, trying to caption and upload dozens of photos in a very brief time (halftime of a NFL game), saving several seconds on every photo adds up quickly. Thanks!