UPDATE: Have uploaded copy of macro at bottom of post; thanks for the tip!
Also for additional context (in case it's helpful): what is happening with this macro is I've got google calendar and google sheets open next to each other in web browser and I'm basically simulating the key strokes and window switching required to extract calendar information and deposit it into google sheets.
Am having some issues executing a macro with the purpose of copy/pasting google calendar information into a google sheet.
Initially I created the macro and upon running it behaviour was inconsistent i.e. sometimes actions were executed and sometimes they weren't upon different run iterations.
I worked out that KM was executing steps before the OS had loaded each part, so I modified it using timed pause actions (e.g. pause 0.2 seconds etc.)
However upon doing this I still found it to be hit-and-miss, with more inconsistent behaviour depending on when I ran it/how many tabs were open in the browser during the running of the macro, particularly as more actions were added to the macro.
I also found myself spending a fair amount of time adjusting the amount of time on each pause and still having inconsitent results so would prefer to avoid that method if at all possible.
So I changed the Actions in order to add (what I THOUGHT were) more appropriate "conditional" pauses to each step of the process.
However after having done this and testing the first small section of the macro I've found that only the first few actions in the macro were successfully executed whilst the rest aren't; I'm only getting through the first 2 actions in the sequence successfully.
I'd love to upload a screen recording of the issue but it seems there's no option on this site, which isn't unusual on a forum, granted.
Could someone please help me understand why it isn't working/propose a solution?
Is there a different type of pause I should use in this situation?
I'm an absolute KM Noob.
Import Job info from Calendar to Happy Helper Management Google Sheet Macro (v11.0.3)
Can you please share your actual macro? Select it in the sidebar in the editor, then click the share icon in the toolbar, and select Keyboard Maestro Forum. This will put the macro in a new post; you can cut all the text and reply here and paste it.
From what I see in your Screenshots most pauses not really needed - despite the fact that for example a Pause Until Action with the Key is up Condition will interrupt your Macro to pause until a certain Key is not held down anymore - it reacts to the user not to the action performed by KM.
In your last Screenshot I can see another mistake… the Pause Until with the Window Title Condition waits as long as the Title of the desired Application window doesn’t Match the Condition‘s Value. So unless another Macro or you will not change a tab x times until there is the match there will nothing happen inside the Macro.
For this Part of your Macro use the Next Tab Action inside a Repeat action with a hardcoded Value (if the repeated value is always the same) or inside an Until Action where the Condition is defined to match your desired Window Title (when the desired value of tab changes is different each time).
You don't need those pauses after the simulated keystrokes -- unless you are also pressing a physical key. The default "Type a Keystroke" is a down-and-up, so the "is up" condition will always be true when the "Pause" action is evaluating.
If the macro is blocking immediately after the "Select 'Copy' in the Menu..." action, make sure a) you have something that can be copied, and b) that something isn't already on the System Clipboard -- copying something that's already there doesn't result in a Clipboard change.
Macroing web apps can be tricky, especially timing-wise -- too much variation, too few "proper" hooks into the app you can use. But there's usually a way so, as others have said, post your macro and people should be able to help. See How to Post/Upload your Macros and Scripts