Sebastian42 Posted August 12, 2021 Report Share Posted August 12, 2021 When I have ONE app (SendLeap) open in Chrome (and nothing else), and want to reference it in a macro, 12 Chrome entries show in the 'Running processes' - is there a way of identifying which of those is relevant to SendLeap ? Quote Link to comment Share on other sites More sharing options...
Cory Posted August 12, 2021 Report Share Posted August 12, 2021 I don't believe so. Quote Link to comment Share on other sites More sharing options...
Sebastian42 Posted August 12, 2021 Author Report Share Posted August 12, 2021 I'm happy to change tack; There exists an internet shortcut for opening Sendleap in Chrome; is there a way of referencing THAT in a macro to launch SendLeap ? No need for a reply - I have managed to get the macro to launch SendLeap. The next difficulty is that before opening Sendleap, a Debugger window opens and needs to be closed. Quote Link to comment Share on other sites More sharing options...
acantor Posted August 12, 2021 Report Share Posted August 12, 2021 Sure. If the shortcut exists as an icon somewhere on your computer, then it's got the ".lnk" extension. Then use the "Program Launch" option in Macro Express: Program Launch: "SendLeap.lnk" (Normal) Parameters: There is another option that doesn't involve Macro Express. Place the shortcut on the desktop. Open its properties, and enter a "Shortcut key." Pressing that key combination will launch the shortcut, even when the Desktop isn't exposed. Quote Link to comment Share on other sites More sharing options...
Sebastian42 Posted August 12, 2021 Author Report Share Posted August 12, 2021 I need to use Macro Express because the window that opens has to be 'manipulated' - I can explain if you want to know - but i think the reason is irrelevant to solving my problem. I succeeded in launching sendLeap from a macro (using the shortcut I mentioned), but before I can do the required manipulation, I have to close a Debugger Window that opens when the macro is run. It only requires a mouse click, so I have coded-in an ENTER press, but that is not closing the Debugger Window. Quote Link to comment Share on other sites More sharing options...
Sebastian42 Posted August 12, 2021 Author Report Share Posted August 12, 2021 That debugger window only shows when I do 'Test Run' - not if I use the hotkey - so that obstacle is over come. The manipulation I need to do starts with selecting a control button. My macro can enter a TAB to highlight the first button, but whereas MANUALLY it's a matter of repeating TAB to 'move to' the Control button of interest, in the macro, entering the code for TAB does NOT have the same effect. That is my new obstacle. How else can I change the focus of control buttons ? Quote Link to comment Share on other sites More sharing options...
acantor Posted August 12, 2021 Report Share Posted August 12, 2021 You may need to insert a delay before the macro outputs Tab. Start with one second. Then through trial and error experimentation, see if the delay can be shorter without sacrificing reliability. It might be possible for Macro Express to directly act on the button without the need to tab, but the method is hard to explain, and it only works in certain applications. Read Help on the "Get Control" instruction. Quote Link to comment Share on other sites More sharing options...
Sebastian42 Posted August 12, 2021 Author Report Share Posted August 12, 2021 I had tried 2 seconds delay - and since that did not work, I thought there might be another problem, but sure, I can try 5 seconds and work back down. Thank you for the 'get control' hint - I'll investigate it. 5 seconds had the desired effect (at first try anyway) but raises the intellectual (NOT practical) problem that this is short of TWO TABs that are supposed to be needed. Quote Link to comment Share on other sites More sharing options...
acantor Posted August 12, 2021 Report Share Posted August 12, 2021 Let's see your script. Quote Link to comment Share on other sites More sharing options...
Sebastian42 Posted August 12, 2021 Author Report Share Posted August 12, 2021 Quote Link to comment Share on other sites More sharing options...
Sebastian42 Posted August 14, 2021 Author Report Share Posted August 14, 2021 Although that script has achieved my desired goal, it has two undesired bonuses. A separate Chrome window with the error message also opens, and the first line of code which was meant to be a comment, gets activated to enter the text string 'Launches SendLeap as a chrome App'. It's easy enough to remove that line, I have found the COMMENT option in the Edit Menu, so THAT has been resolved. It's still a mystery why the macro works and why I get a second Chrome window opened. Quote Link to comment Share on other sites More sharing options...
Sebastian42 Posted August 20, 2021 Author Report Share Posted August 20, 2021 The second window opened because I had left TWO SendLeap shortcuts in the StartUp folder; one to the App and the other to the batch file with the macro. 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.