After the APP, which is a VPN client, is opened by the Hotkey, I can press enter key to login in semi-manually, so it works. In the workflow, the delay is 8 seconds, and I think it is long enough. As you suggested, I put a debugger, and I got the following result.
I setup an Alfred workflow to open an APP and then dispatch "Enter" to the APP as shown in the picture. However, the dispatch key combo module doesn't work as I think.
I connect a play sound module to the delay module, and it can work normally. I don't know why dispatch key module can not work normally. Is there anybody who knows the reason?