I need steps of a macro in such a way that, it will open a URL (passed on to it from the earlier steps of the macro) in a new tab but this new tab should not become an active tab. While opening this URL, brave browser would already be at front due to the previous steps of the macro.
My use case: I need to opne multiple URLs. Mostly are social media profiles. I am trying to avoid being flagged as a bot. So while I am actively scrolling through my current tab, I need rest of the URLs open with considerable amount of pause time in between. I will be scrolling my current tab with either trackpad, up/down buttons or J/K keys.
PS: I need to be able to set a custom pause time after the URL opens in adjacent tab (without making the adjacent tab active).
You can't -- that functionality was removed after people started using it to eg spawn multiple porn-showing background tabs when you visited their website!
The best you can do is to open a new tab and then go back to your previously-active one. Using KM actions:
You might get a speed increase by opening a new, blank, tab with a script (JS or AS), going back to the "main" tab, then setting the URL of the new tab in the background -- reduced page load time may make the action complete faster -- but that seems like needless complication at this point. See if the above works for you first!
I have no clue but when I searched in the forum before posting my question here, i bumped into few posts. I couldn't figure out which steps exactly should I implement in my macro hence i posted here. so all along i was under an opinion that it is possible. @Nige_S Are these posts from the time when it was technically possible?
Oh. Well, I spotted a problem anyway. Your "Set Variable" action is flawed. In it you are assigning a variable the value "FRONTBROWSERTABINDEX()". What you should be doing is evaluating the function instead of saving those letters into a variable. There are two ways to do that. I recommend that you replace the "Set Variable to Text" action with "Set Variable to Calculation" action. That way your function will be evaluated, which is what you need.
That will correct one issue, but since I don't have Brave I can't guarantee it will fix your entire macro.
There is also a Calculate Token that can be used to evaluate the Function inside a Set Variable to Text Action - so you don’t need to change it to the other action.
Have you set the preferences for the Front Browser Actions and Tokens to use Brave ?!
Maybe you’ve forgotten about this ?! This would be in fact a major issue in your Macro.
Already answered, but remember that the Editor does try to help whenever it can. In this case:
Tabs in a window are numbered, 1 is left-most, then 2, etc. So you'd expect to see a number in there, not text. That's your clue that you've used either the wrong action or the wrong token.