Jump to content
Macro Express Forums

Window does not focus with mouse click


Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...