Sebastian42
Members-
Posts
160 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by Sebastian42
-
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.
-
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 ?
-
Start debugger in a different window
Sebastian42 replied to Sebastian42's topic in Macro Express and Macro Express Pro
Very helpful - Thank you. -
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.
-
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.
-
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"/>
-
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 ?
-
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.
-
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
-
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.
-
The first response to increased delay is good - SendLeap launched as wanted. Let's see if it persists.
-
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"/>
-
Removing the comments did nothing to improve the reliability
-
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.
-
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.
-
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.
-
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.
-
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 ?
-
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.
-
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.