Using “Run Auto Hot Key” (and likely “Start Process” and “AHKActivities”, untested so far), you can run C# code from within UiPath.
Try your own code! Some examples are on the website at the link to CLR.ahk above. You can place your code in the portion of ‘UiPath_CLR.ahk’ surrounded by the red rectangle in the screenshot below.
(If your class is not named “Foo”, and I doubt that it will be, be sure to also change the line:
obj := CLR_CreateObject(asm, “Foo”)
using the name of your class.
Included are ‘I_can_C_sharp.xaml’, ‘CLR_H.ahk’, and ‘UiPath_CLR.ahk’.
C-Sharp-CLR.zip (3.6 KB)
p.s. Remember that ‘Run Auto Hot Key Script’ can also take arguments. If you use that activity and want a return value, you’ll need to wrap your AHK code in a function, and specify the arguments in the Properties pane of the activity.