Welcome to the group. Hope you have many KM macros ahead of you.
The quickest way to start on this is to record your steps within KM, then you will see what KM is doing.
Then you can edit it.
Pause or pause until will handle the delay
Suggest you write a DIFFERENT macro using say textedit so you understand insert text action,
Then the buttons connect and OK should be straightforward
If possible use dropdown menu options rather than position the cursor to hit a button.
Yep. You can review the KM Wiki links below to get some ideas of Actions you can use.
If you have not yet written your first, macro, then you would be well served by first reading the "Getting Started" section below.
@cyberdevz, welcome to Keyboard Maestro (KM) and its Forum.
KM is one of the best Mac automation tools available, its Forum is one of the best and friendliest forums on the Internet. Whenever you reach a tough stumbling block trying to use KM, please feel free to post your question/problem here for help.
With your help i managed to semi-automate this with these triggers / actions
First trigger - hotkey (shortcut key combo)
Press button connect
Pause until a button enabled
Insert text by pasting - password
Type the tab keystroke
Insert text by pasting - 2nd text
Press button ok
It's working great. However, I have few questions/concerns :
Insert text by pasting action is not that safe because it's in plaintext. If i open the macro I can see the password. Can I hide this or use some masked text etc?
This is working great so far, but I'd like to fully automate this. When I login to my mac by entering a password, can i open this app automatically, auto click the connect button etc? I'm trying to replace/automate the 1st hotkey trigger.
try the following triggers as well as your hot key, just add them
trigger on login, km engine restart and status menu
also, this is not needed, but to give you ideas
try typing on string trigger e.g. if you type qqkf then it types Keyboard Maestro Forum
also use this technique to autocorrect your common typos
and qq== OR zx== types ===================================
I use both qq and zx as escape string triggers followed by two char
e.g. qq07 or zx07 for my mobile
Finally going back to 1 above
create three macros
macro a types first four chars of password
macro b types rest of password
macro c calls macro a slight pause then macro b
best i can think off
nb use type not paste
Finally again , create macro called loginrestart that is triggered by login and restart that calls your setup macro. then remove the triggers on the setup macro as it is now called and
add a comment action so you know what it is doing etc