Page 1 of 1

where is the code for "solution 3"

Posted: Thu Jun 11, 2020 9:28 am
by exm1110b
hi,
in the page https://www.ranorex.com/help/latest/int ... eshooting/

under " Test executable not started by a Ranorex tool" there's a 3rd solution, with a code alternative
only there's no code listed, what's the code?

Re: where is the code for "solution 3"

Posted: Thu Jun 11, 2020 6:58 pm
by Support Team
Hello exm1110b,

Thank you for bringing this to our attention, I have notified our documentation team for corrections.

Regards,
Sean

Re: where is the code for "solution 3"

Posted: Thu Jun 11, 2020 6:59 pm
by exm1110b
thanks, till they correct this, can you at least provide the code here?

Re: where is the code for "solution 3"

Posted: Thu Jun 11, 2020 7:20 pm
by Support Team
Of course!

C#
if (Util.IsRestartRequiredForWinAppAccess)
return Util.RestartWithUiAccess();

VB.NET
If Util.IsRestartRequiredForWinAppAccess Then Return Util.RestartWithUiAccess()