I want to deleteAllCookies AT LOOP NUMBER 500 EVERY TIME,

hello
I want to deleteAllCookies AT LOOP NUMBER 500 EVERY TIME, , can you please help me?

You can delete all cookies and cache with this macro code, i run it inside other macro.

It works for firefox (i do not use chrome it’s too slow and require more memory)

{
  "Name": "Clear_Cookies_And_Cache",
  "CreationDate": "2020-2-15",
  "Commands": [
    {
      "Command": "store",
      "Target": "true",
      "Value": "!ERRORIGNORE"
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!STATUSOK"
    },
    {
      "Command": "store",
      "Target": "FAST",
      "Value": "!REPLAYSPEED"
    },
    {
      "Command": "store",
      "Target": "1",
      "Value": "!TIMEOUT_WAIT"
    },
    {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_SHIFT+KEY_CTRL+KEY_DEL}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "10000",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Clear Browser History Completed",
      "Value": "#shownotification"
    }
  ]
}

thank you , i already used that code, but this not what im looking for it . i want to do the action just on every 5th loop for ex

You can use if command inside lopp to run macro if_v2 !LOOP = 5

Otherwise optimize the macro code i do not use !LOOP I prefer !Times command is more flexible

I HAVE TRIED if_v2? BUT IT DOESN’t worked , can u tell me how to do it with !Times command

Post your complete macro code please

{
“Name”: “S”,
“CreationDate”: “2020-9-14”,
“Commands”: [
{
“Command”: “open”,
“Target”: “https://www.google.com/”,
“Value”: “”
},
{
“Command”: “if_v2”,
“Target”: “!LOOP=5”,
“Value”: “”
},
{
“Command”: “open”,
“Target”: “https://www.facebook.com/”,
“Value”: “”
}
]
}

Your code is not a macro code it’s a copy and paste of random code.

Read and study docs after you can create working macro, at this moment you do not know the the simplest commands of ui vision and you can not create any working macro without study.

To create macro you must study the command otherwise you must pay a coder to work with you.

Read and study this for 2 weeks (I study it from 2 years)

https://ui.vision/rpa/docs

ok thanks for your time