0
votes

How to run autohotkey script from Robot Framework ?

1
What is your question? Have you answered your own question within the question itself? - Goralight
Hi Goralight, exactly. I wanted to help to others. there was no such an answer before. - Robert1968
Id recommend that you answer you own question then :) What you have done is great. But split your question. The How do I run Autohotkey on RF? in the question part, and then below you can answer it yourself :) - Goralight
Thanks for this positive comment. I follow it. :) - Robert1968
Many thanks for "Tuks" and "Todor" comments and suggestions. I approved them! - Robert1968

1 Answers

4
votes

One solution:

  1. Add the Process library to the Settings section of the robotframework file.

This allows robotframework to run local OS executables like autohotkey.exe:

Library           Process
  1. Use the Run Process keyword in your script. (The trick is to put an extra backslashes before all

    • "backslashes" and
    • "space"

    (but don't add to ":" ). This is to escape them in robotframework source, and preserve for the execution.


Run Process    c:\\Program\ Files\\AutoHotkey\\AutoHotkey.exe    C:\\work\\robot\\S2\\URS_download.ahk

enter image description here