jamesd1 Posted March 1, 2023 Report Share Posted March 1, 2023 I have a macro to launch Anyviewer. When the first part of the interface launches on my desktop to ask for connection data (see image) then Macro Express stops functioning in that Anyviewer Window. I've read the thee knowledge based texts about "hooks" and such but it is advanced and I don't understand how to make it work in this first window. Quote Link to comment Share on other sites More sharing options...
acantor Posted March 2, 2023 Report Share Posted March 2, 2023 It looks like the "AeroAdmin v4.9" window is not receiving keyboard input focus when it opens. Your script may need to give it focus before the script does anything else. Maybe something like this: // Launch Anyviewer... Program Launch: "c:\Programs\Anyviewer.exe" (Normal) // Wait up to five seconds for the "AeroAdmin" window to open Repeat Start (Repeat 10 times) If Window "AeroAdmin v" is running // Parital match of window that isn't gaining focus Window Activate: AeroAdmin v // Give focus to the window Repeat Exit Else Delay: 500 milliseconds End If End Repeat // Act on the now-focused AeroAdmin window... Text Type (Simulate Keystrokes): <TAB>12345<TAB>abcde<ENTER> Quote Link to comment Share on other sites More sharing options...
jamesd1 Posted March 2, 2023 Author Report Share Posted March 2, 2023 I tried the code above; it still does not receive keystrokes or mouse movements from Macro Express. Quote Link to comment Share on other sites More sharing options...
acantor Posted March 2, 2023 Report Share Posted March 2, 2023 My code is illustrative. You'll need to modify several lines before the script might work. I have no way of knowing the path to the executable on your computer. And I don't even know the name of the executable. So I invented the path and the program name. This line is probably totally wrong! c:\Programs\Anyviewer.exe Quote Link to comment Share on other sites More sharing options...
Cory Posted March 2, 2023 Report Share Posted March 2, 2023 (I thought I sent this before, but now I found it hadn't.) I don't either. You might look at running MEP with elevated privileges (Admin). Many posts here about it and I think ISS has a support page about it. Also I have many problems with MEP not working in UWP apps and that looks like it might be one. Many discussions about that here also. I don't have that application so I can't test for myself. Just random thoughts for you. If I can think of anything else, I will return and post more. P.S. it sounds like the same problem I have with UWP apps. They seem invisible to MEP. Quote Link to comment Share on other sites More sharing options...
jamesd1 Posted March 2, 2023 Author Report Share Posted March 2, 2023 whid modifty it; and it ran OK it just did not result in anyviewer working with macro express. Cory; running as admin had not effect. Quote Link to comment Share on other sites More sharing options...
Cory Posted March 2, 2023 Report Share Posted March 2, 2023 We have discussed this in other threads. You can search if you like. I was adamant it doesn't work in UWP. If that's what you have. It looks like it. However some others pointed out that it can work in a limited way. Somehting about sending text still works. But I seem to remember not being able to get it to work myself. I gave up trying on UWP apps. But maybe you can take the advice from those other threads and get it to work like others claimed to be able to do. Quote Link to comment Share on other sites More sharing options...
acantor Posted March 3, 2023 Report Share Posted March 3, 2023 I downloaded the application and took it for a test ride, both with and without Macro Express. It's an extremely inaccessible program. Macro Express is unable to interact with the user interface in any meaningful way. An application-specific script for Anyviewer isn't even possible. From a macro-scripter's perspective, Anyviewer is useless. I uninstalled it! Find a different application if you're wanting to automate tasks via Macro Express. Quote Link to comment Share on other sites More sharing options...
jamesd1 Posted March 3, 2023 Author Report Share Posted March 3, 2023 acantor, Thanks much for the info. Quote Link to comment Share on other sites More sharing options...
jamesd1 Posted March 3, 2023 Author Report Share Posted March 3, 2023 cory, what forums are the "got it to work in a limited way" to be found? Quote Link to comment Share on other sites More sharing options...
Cory Posted March 3, 2023 Report Share Posted March 3, 2023 This one. It might have been Samrae. It might have been this one. I need to lunch. BBL. Quote Link to comment Share on other sites More sharing options...
jamesd1 Posted March 7, 2023 Author Report Share Posted March 7, 2023 I found the best workaround was to use an app that works well with Macro Express. The best I found was https://rustdesk.com/ and it is free and the fastest to connect of any I tried. 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.