@sfranzen, I believe you are an expert on this topic. I’d like to ask a question:
I’m trying to integrate AutoHotkey scripts into UiPath. I can do it from VB.Net without much trouble, using both Interop.AutoHotkey.dll and AutoHotkey.dll, using both early and late binding. I see from your posts that late binding won’t work in UiPath.
Building off a workflow that @TDagsvik sent me, I’m loading System.Windows.Forms and AutoHotkey assemblies, and using Invoke Code into UiPath. Using “step into”, my code runs fine until the Invoke Code executes, and i get a late binding error at line 1. I’m attaching my non-functional attempt and the workflow @TDagsvik sent (which I found to be a great example of how to write and annotate a workflow, by the way).
Turn_ScrollLock_Off.xaml (12.6 KB)
Ahk attempt.xaml (9.8 KB)
If you have time, I would love to find my around this bottleneck.
(I have experimented with the Run Auto Hot Key Script [sic] activity, but all I seem to be able to do is load an existing script and run it. The script I called for test purposes is dirt simple. Run from the command prompt, the script “HelloVariable.ahk” with the argument “hello” - no quotes anywhere - takes the argument and displays it in a message box. it works fine (as you can see, I’ve got .ahk files associated with AutoHotkey.exe on my machine)
When I load the same script in a Run Auto Hot Key Script activity, I can add arguments from the bar below the workspace, but the script doesn’t see them. When I add an argument from the Properties panel, it throws an error and I get the dreaded red exclamation mark. AutoHotkey is basically off the radar in the forum, with good reason I suppose, but it does not seem to me that the Run Auto Hot Key Script activity is giving access to any of the true capability of AutoHotkey.dll. To get data in and out you have to save it to and retrieve it from the file system, which works and is really speedy, contrary to my expectations, but that’s not very elegant. I don’t know if it is of any use, but that script HelloVariable.ahk is attached also in a zip file.)
HelloVariable.zip (434 Bytes)
Ahk attempt two.xaml (4.8 KB)
Thread with @TDagsvik’s post