I have a macro I want to run as follows:
Open new tab, go to URL, run the rest of the macro in that new tab.
My problem is if I have chrome open already, the macro will open a new window, go to the url, but then continue the rest of the macro in another tab that was in focus prior to running the macro.
The first thing you have to do is open up a window or tab and navigate someplace. If I just open a blank tab usually the macro wont run or it will swap to another tab you last used. then you can try this out and see if you get the same problem I get. Sometimes it will open a new tab at the listed url but then switch back to the first tab and the new tab will be in the background where the macro would fail because the contents of that tab cant be read.
Im not sure if Im using the commands correctly, I want the new tab to be in the foreground so the rest of the macro can work.
this test macro is just clicking on 2 random buttons on youtube
{
“Name”: “test”,
“CreationDate”: “2023-8-17”,
“Commands”: [
{
“Command”: “bringBrowserToForeground”,
“Target”: “”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “openBrowser”,
“Target”: “http://www.youtube.com”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XClick”,
“Target”: “mat1uh_dpi_96.png”,
“Value”: “”,
“Description”: “”
},
{
“Command”: “XClick”,
“Target”: “ycxjnf_dpi_96.png”,
“Value”: “”,
“Description”: “”
}
]
}