I am attempting to use the invokeLater function to open a window, run some code (which often takes 5-15sec due to utilizing a web API) then close that opened window. My goal is to create a semi-transparent lock screen with a loading bar so that user knows that the system is processing. The following code simply opens and closes the window instantly rather than waiting for the “move” script to fully process before closing the window. Why would this happen and how can I go about fixing it? My understanding was that with the invokeLater script openLock then move then closeLock should execute in that order one after the other.
system.util.invokeLater(openLock) system.util.invokeLater(move) system.util.invokeLater(closeLock)