Window with no Title

Hi - I am using a macro to open NordVPN at login, to select United Kingdom (often "server overloaded" occurs so the selection over-rides that) and then close/hide the window. The window title at this stage would then indicate that the UK selection has been successful but there is no window title to reference. Close window, even with a delay does not work and neither does Command H to hide the window. Can KM extract any other information to identify the window and close it?

Howdy, welcome to the forum!

I have no knowledge of that app, but when KM can’t “see” a window I usually try using AppleScript.

Try the following AppleScript (I’ve included a test macro for simplicity) and see if that works.

AppleScript (click to expand/collapse)
tell application "NordVPN"
	tell window 1
		close
	end tell
end tell
Macro Screenshot (click to expand/collapse)

Close NordVPN window.kmmacros (2.2 KB)

Thanks very much - really appreciate the rapid reply. I’ll try it tomorrow morning and let you know how it works. Richard

1 Like

Thanks again - for some reason this did not work either, however I have found that using Hide linked directly to NordVPN has worked. I shall review more with Applescript in the future.