Send hotkey alter if disabled error

Since the version update, send hot key is ‘alter if disabled’ error has occurred.

However, unlike Click and TypeInto, SendHotKey does not have that option.

I tried to replace it with TypeInto[k(up)] , but SendhotKey is required because it must be entered simultaneously with [k(shift)].

The version tried to downgrade, but some activities were broken.

how to set ‘alter if disabled’’ option in Sendhotkey?

Hi

Welcome back to uipath forum

There are two ways to handle this

  1. Yes you are right. Like as how we have in type into activity there is no property called alter if disabled in send hot key activity
    In that case we can use

—get attribute activity where indicate that element and get the attribute called aastate and save that value in string variable named strinput

—now use a IF condition like this
Strinput.ToString.ToUpper.Contains(“ENABLED”)

IF true it goes to then block where we can keep the send hot key activity with the key you want or it goes to Else block
This is one way

  1. Second option is in SEND HOTKEY ACTIVITY itself there is a property called WaitForReady where choose as NONE so that it won’t wait for the target to element to load

And also set as true in CONTINUE ON ERROR property so that even if the element is disabled activity won’t fail and continue further

Hope this would help you resolve this issue

Cheers @lee_gildong

The solution was to give option WaitForReady to None.
Thank you so much!

1 Like

WaitForReady was not the solution. It was tested in version 20.4 by mistake.
Is there a way to downgrade the 21.10 to 20.4 version without broken the activity?

Hi,

Simply, can you try to surround the SendHotKey by RetryScope, if you need to wait until the element appears?

Regards,

Hi
The program I try to use now is the Oracle application, it is strange.
Even though all loading is completed and activated, ‘alter if disabled’ error occurs.

For those who have the same problem as me, please refer to it.
When downgrading from 21.10 to 20.4, activities such as InvokeWorkFlow and CommentOut were broken.
I knew that both UIAutomatin.Activities and System.Activities needed to downgrade the version.
But System.Activities keep the version, and only UIAutomatin.Activities downgraded.
Surprisingly, Activities were not broken, and SendHotKey worked without error.

Hi,

FYI, it’s because SendHotKey is included in UiAutomation.Activities. On the other hand, InvokeWorkflowFile and CommentOut are included in System.Activities. So we need to downgrade only UiAutomation in this case.

Regards,

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.