Jump to content
Macro Express Forums

Sebastian42

Members
  • Posts

    160
  • Joined

  • Last visited

Posts 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. 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 ?

     

  3. 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. 

     

  4. 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.

  5. 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"/>

     

  6. 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"/>

     

     

     

     

  7. 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.

  8. 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 ?

     

     

    MacExp.JPG

  9. 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.

×
×
  • Create New...