Can we use BlockuserInput -Mouse or Keyboard option to work like a flag from config like Enabled or disabled mode. If enabled mouse restriction can be applied or it should not be applied to the activities in the Blockuserinput container.
If → Config value is True
True → Give the activities inside the Block User Input activity
False-> Give only the activities without the block user input
I think you cant pass directly in the blockuserinput activity
Yes, I am checking whether we can pass the config condition in the Block property as I need to copy paste the same code in the else part if config is set outside like a condition.
Thank you. Yes, first i tried this one but actually Blockmethod does not have none property and given that condition in Block property but UiPath clearly says none is not member of Blockmethod. Can you please check it out or suggest any other option to give the condition directly in the block property?
Thank you @Anil_G for suggestion. This one also tried already but does not work. UiPath continue to restrict mouse (given BlockMethod.mouse) if i use either true or false in that condition.
Thank you @Sudharsan_Ka but I am trying to free mouse restriction in the same property “Block”. If condition is true, then apply mouse restriction false means then not to apply mouse restriction like the condition anil posted
Okay I see when we give nothing it by default takes All. So The only way that you can go about is usinf if condition before hand and then decide to use …