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.
Yes you can use like that
Pass a Boolean value in the config file
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
Thank you @Sudharsan_Ka
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.
You can do as i said above @Boopathi.M
You can add condition in that field directly like this
You need not have a separate if condition…open advanced editor by clicking on 3 dots beside the property to open panel and provide input as above
Hope this helps
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?
Please try like this
Hope this helps
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 …
Okay, Thanks for your suggestions @Anil_G and @Sudharsan_Ka
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.