jaffy1229 Posted March 7, 2017 Report Share Posted March 7, 2017 I am trying to create a macro to select different options in a VPN client, but when I tell the macro to click on the applications windows status bar to get focus, nothing happen. The macro should then select a pull down menu, but this fails also, because it appears the window is not active. When i manually click on the window, it becomes activated so I am not sure why this is happening. It works fine on any other window, but this window seem to a be a problem. Does anyone know why this should be? Thanks Jaffy Quote Link to comment Share on other sites More sharing options...
acantor Posted March 8, 2017 Report Share Posted March 8, 2017 Macro Express may not be able to "see" anything in the VPN client. You might try activating the VPN window via Macro Express to give it focus, and then clicking a coordinate relative the window. Also try activating the menus in the VPN by keyboard. You might be able to send keystrokes with Macro Express once the window is focused. Try <ALT> + the underlined letter to access a menu, e.g., Alt+F for the "File" menu. If you cannot fully automate the process, partial automation is a fine option. For example, you may need to manually give focus to the VPN region before activating a macro that does the repetitive grunge work. Quote Link to comment Share on other sites More sharing options...
Cory Posted March 8, 2017 Report Share Posted March 8, 2017 Is your VPN client a UWP app or a WinAPI app? UWP are the new "apps" sometimes called "Metro apps". WinAPI are the traditional Windows programs. Quote Link to comment Share on other sites More sharing options...
jaffy1229 Posted March 8, 2017 Author Report Share Posted March 8, 2017 17 hours ago, acantor said: Macro Express may not be able to "see" anything in the VPN client. You might try activating the VPN window via Macro Express to give it focus, and then clicking a coordinate relative the window. Also try activating the menus in the VPN by keyboard. You might be able to send keystrokes with Macro Express once the window is focused. Try <ALT> + the underlined letter to access a menu, e.g., Alt+F for the "File" menu. If you cannot fully automate the process, partial automation is a fine option. For example, you may need to manually give focus to the VPN region before activating a macro that does the repetitive grunge work. I still can't gain focus on the window, I have tried the commands Window Show, Restore, Activate, but none give the window focus. I will see if I can do as you suggest and manually give it focus before the macro and try not to loose its focus. Thanks Quote Link to comment Share on other sites More sharing options...
jaffy1229 Posted March 8, 2017 Author Report Share Posted March 8, 2017 3 hours ago, Cory said: Is your VPN client a UWP app or a WinAPI app? UWP are the new "apps" sometimes called "Metro apps". WinAPI are the traditional Windows programs. I am not sure, how would I find out? Quote Link to comment Share on other sites More sharing options...
jaffy1229 Posted March 8, 2017 Author Report Share Posted March 8, 2017 I have tried focussing the VPN client before the macro starts and have found Macro Express stops functioning. If i do not focus the VPN client, Macro Express moves the mouse to relevant positions, but nothing happens. I am not sure why its doing this Quote Link to comment Share on other sites More sharing options...
jaffy1229 Posted March 8, 2017 Author Report Share Posted March 8, 2017 I have just tested another macro application and it has no problem with the VPN window. It takes focus of the window when it clicks on a pull down menu. So i have an issue with Macro Express, but not sure why Quote Link to comment Share on other sites More sharing options...
Samrae Posted March 8, 2017 Report Share Posted March 8, 2017 Just to see if it helps would you try running Macro Express as administrator? Quote Link to comment Share on other sites More sharing options...
Cory Posted March 9, 2017 Report Share Posted March 9, 2017 I gave you links explaining each type of program Please read and understand them, at least the brief descriptor. UWP apps are the new Windows 10 apps. Like you find in the Window Store. They have the new modern look. For instance calculator as a UWP app looks like this whereas calculator as the old WinAPI app looks like this. MEP doesn't see controls in UWP apps. I assume you're talking about the client application to connect. Quote Link to comment Share on other sites More sharing options...
Cory Posted March 9, 2017 Report Share Posted March 9, 2017 BTW you shouldn't run MEP through a VPN window. MEP needs to be running on the VPN client machine. The interaction is limited to blind text and mouse moves when running locally and is nearly useless and problematic. However I am not able to determine if you are talking about the VPN Client software connection dialog box or if you're trying to make MEP run on a client VPN machine though the VPN window. Quote Link to comment Share on other sites More sharing options...
jaffy1229 Posted March 10, 2017 Author Report Share Posted March 10, 2017 On 08/03/2017 at 9:52 PM, Samrae said: Just to see if it helps would you try running Macro Express as administrator? it does helps, Thanks so much! I am already an administrator on the computer but it only seem to work when I run it as administrator. A bit strange, but at least it works. Thanks again. Quote Link to comment Share on other sites More sharing options...
jaffy1229 Posted March 10, 2017 Author Report Share Posted March 10, 2017 Thanks everyone for the information provided and advice, it is now working! Quote Link to comment Share on other sites More sharing options...
Samrae Posted March 10, 2017 Report Share Posted March 10, 2017 1 hour ago, jaffy1229 said: it does helps, Thanks so much! I am already an administrator on the computer but it only seem to work when I run it as administrator. A bit strange, but at least it works. For security purposes Windows (since Vista) does not allow a program running with normal privileges to interact with a program running with elevated privileges. This article describes how to run Macro Express as Administrator when Windows starts up: https://www.macros.com/faq/1.92.html Quote Link to comment Share on other sites More sharing options...
jaffy1229 Posted March 12, 2017 Author Report Share Posted March 12, 2017 On 10/03/2017 at 8:37 PM, Samrae said: For security purposes Windows (since Vista) does not allow a program running with normal privileges to interact with a program running with elevated privileges. This article describes how to run Macro Express as Administrator when Windows starts up: https://www.macros.com/faq/1.92.html Thanks again for your help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.