Jump to content
Macro Express Forums

Sebastian42

Members
  • Posts

    160
  • Joined

  • Last visited

Everything posted by Sebastian42

  1. I had already tested those steps with 1 second delay - to no avail. I have managed to get the (correct) Menu selected by means of a mouse movement, but can not get ENTER to have effect there. A different issue, just in case there is a solution : every fourth (?) attempt at this, launches Chrome with a 'popup' page focused, that therefore invalidates the sequence of steps.
  2. Neither of those codes worked The first one did cause the insert marker to appear in the Search box. Manually, it works if ENTER is done after Tab, but not in the macro.
  3. How unexpected ! Will try the bat file. It did NOT close Firefox; moreover, the macro persists. I looked for 'end' (as in batch files) to add, but could not find such code.
  4. I've included a snap with the menu icon circled in red. Once I reach that Chrome Bookmarks page, I need to access that menu; previously I thought that TAB would do it, but that does not work for me now (maybe it never did). Does anyone know ?
  5. I'm overjoyed to report that after much trial and error (mostly error), my code (improved with your suggestions) now manages to do 'the backup of up bookmarks' that was my aim. I am happy to post the code, if someone asks to see it. HOWEVER The most unexpected failure is that Firefox will not close at the end of the process. <DELAY Flags="\x02" Time="1000"/> <COMMENT Value="Shift focus to Firefox window"/> <WINDOW ACTIVATE Title="New Tab - Mozilla Firefox" Exact_Match="FALSE" Wildcards="FALSE" _IGNORE="0x0006"/> <DELAY Flags="\x02" Time="1000"/> <COMMENT Value="Close the Firefox window"/> <PROGRAM SHUT DOWN Option="\x01" Title="New Tab - Mozilla Firefox" Partial="FALSE" Wildcards="FALSE" _IGNORE="0x0006"/> How can that code be improved to close Firefox ?
  6. I have ALT-I allocated to a hotkey in WordPerfect-for-DOS, but that should not affect anything in Windows. I did test the suggested code in Firefox v91 (64bits) and it did not SEEM to do anything. Will certainly try the focus setting first - and report back when I have done it. When I added Window Activate: Library to the code, the Library Window no longer has its name greyed out - so that is progress. From there on the behaviour is inconsistent. The Export entry may or may not show. Adding <WINDOW ACTIVATE Title="Library" Exact_Match="TRUE" Wildcards="FALSE" _IGNORE="0x0006"/> reproduced the line 'Window Activate: Library' rather than showing the detail visible above. Changing 'ALT i' to the suggested alternative gives a more reliable progress to SAVE window.
  7. It seems that I do NOT need to get control of Firefox. I can get the library to open, but I can't get ALT-I to have any effect in that Library. I am using an older version of Firefox (and have reason for keeping it), and your code does not have the desired effect in it. I have a PC with a v91 Firefox, and have tried your code - following on from my code for launching Firefox. Firefox launch is all that happens. In have no trouble launching the Library, so I don't need : Text Type (Simulate Keystrokes): <CTRLD><SHIFTD>o<SHIFTU><CTRLU> (library) but your : Text Type (Simulate Keystrokes): <ALTD>I<ALTU> (import/backup) does not do the required activation in Library. It's title, 'Library', looks greyed out - I suspect that needs to be dealt with. When I manually click in the Library window its name becomes ungreyed. I may I need to GET CONTROL of Library (don't know HOW) or set Focus on Library.
  8. In a macro to export bookmarks from Firefox, I can get it to display Library, but I don't know what code to insert so that 'ALT I' takes effect in the Library window to open the 'Import and BackUp' tool. <LOCK PLAYER Wait="TRUE"/> <COMMENT Value=" Launch Firefox and activate it"/> <LAUNCH PROGRAM AND ACTIVATE WINDOW Title="Mozilla Firefox" Exact_Match="FALSE" Wildcards="FALSE" Path="C:\\Program Files\\Mozilla Firefox\\firefox.exe" Mode="\x00" Default_Path="FALSE" Wait="1" Wait_For_Program="12"/> <DELAY Flags="\x02" Time="100"/> <COMMENT Value="Get control of Firefox"/> <GET CONTROL Flags="1" Program_Name="FIREFOX.EXE" Class="MozillaWindowClass" Title="Mozilla Firefox" Variable="%C[1]%" Caption="Mozilla Firefox" Partial="FALSE" Wildcards="FALSE"/> <DELAY Flags="\x02" Time="100"/> <COMMENT Value="CTRL SHIFT B Opens the Library"/> <TEXT TYPE Action="0" Text="<CONTROL><SHIFT>B"/>
  9. When I modify a macro and click on TEST RUN, a window opens titled 'Start debugger in a different window'. It seems to prevent any further progress - I have been clicking on the OK button, and then the macro takes effect. I have no idea of what use that window is and so I ask - can it be prevent from showing, OR automatically closed ?
  10. I ran the macro from a hotkey successfully twice, the third time another Chrome window (with advertisements) also opened, and the macro steps were NOT visible in the 'first' window.
  11. Yes, the only time I need to run this macro when I start my computer. Sometimes (NOT usually), the whole process completes successfully from the batch file. @echo off timeout 20 Start "" "C:\Program Files\Macro Express Pro\MacExp.exe" /ASendleap Cls Exit
  12. I can only confirm that yet again, the batch file did NOT deliver. I will take your advice and settle for less than 100% reliability [or go back to doing manually]. Thank you for your patience.
  13. The first response to increased delay is good - SendLeap launched as wanted. Let's see if it persists.
  14. Thank you for that instruction - so easy - explains why I found it originally, but it's a mystery why it evaded me now. Code : <COMMENT Value="Launches first preliminary window of SendLeap as a Chrome App"/> <PROGRAM LAUNCH Path="C:\\sendleap.lnk" Mode="\x00" Default_Path="TRUE" Wait="1" Get_Console="FALSE"/> <DELAY Flags="\x01" Time="1"/> <TEXT TYPE Action="0" Text="<TAB>"/> <COMMENT Value="That got 'Learn more' selected"/> <DELAY Flags="\x01" Time="1"/> <TEXT TYPE Action="0" Text="<TAB>"/> <COMMENT Value="That got 'Turn on enhanced protection' selected "/> <DELAY Flags="\x01" Time="1"/> <TEXT TYPE Action="0" Text="<TAB>"/> <COMMENT Value="That got 'Back to Safety' selected"/> <DELAY Flags="\x01" Time="1"/> <TEXT TYPE Action="0" Text="<TAB>"/> <COMMENT Value="That got 'Advanced' selected"/> <DELAY Flags="\x01" Time="1"/> <TEXT TYPE Action="0" Text="<ENTER>"/> <COMMENT Value="That got 'Hide Advanced' displayed"/> <DELAY Flags="\x01" Time="1"/> <TEXT TYPE Action="0" Text="<TAB>"/> <COMMENT Value="That got 'Proceed to SendLeap' selected"/> <DELAY Flags="\x01" Time="1"/> <TEXT TYPE Action="0" Text="<ENTER>"/> <COMMENT Value="That achieved the opening of SendLeap app"/>
  15. Removing the comments did nothing to improve the reliability
  16. Previously I had been able to find a 'comment command', but since that has eluded me now, I did second best by entering comments as a 'text command' but without actual text. I can try without any comments, and presumably if/when you reply, you'll tell me where to find the 'comments command' again.
  17. Sad to say - rarely it works, more often it does not. The macro by itself seemed faultless, but when called by a batchfile at Windows StartUp, it became quite unreliable.
  18. I reverted to your original suggestion of using SendLeap.lnk - that launched the required Chrome window. It so turns out that it is a matter of having sufficient delay between the following steps to achieve success. I am now in the process of reducing delays to make it less unwieldy - but the end result I have already achieved. Thank you.
  19. 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.
  20. That (without the 'x86', since mine is a 32bits system), gave me the illusion of success before. As expected, that merely opened Chrome - NOT the App. Experimenting I'm willing to do, but somehow I feel the existing shortcut to the app HAS TO BE part of the path.
  21. Acantor - my apologies for the mistakes in my previous thread; there was worse which I have not reported upon. The success I reported was an illusion. So I want to start from scratch with a new title. When I run a shortcut called SendLeap, it opens a Chrome window. Manually, I can then TAB four times, then press ENTER and the SendLeap App opens in Chrome. I want a macro to do that for me, then I will get a batch file to call that macro and automate the launching of SendLeap at Windows StartUp. When I 'open file location' for the shortcut, I get "C:\Program Files\Google\Chrome\Application\chrome_proxy.exe"; When I enter that path in the Program tab of 'Launch program and Activate Window' and save the macro and run it, nothing happens. How can I fix this first step ?
  22. 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.
  23. 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.
×
×
  • Create New...