1
votes

I use autohotkey to do the work. In the background, however, anti-cheat software detects autohotkey. So I found a way to use AHK with C#: Autohotkey.interop.

But I cannot find a way to run the autohotkey full source using Autohotkey.interop.

like this

AutoHotkeyEngine ahk = AutoHotkeyEngine.Instance;
ahk.LoadScript("test.ahk");

test.ahk

F1::

    CoordMode,ToolTip,Screen

    MouseGetPos,xpos, ypos
    MsgBox, %xpos% , %ypos%

F2::

    ExitApp

I want to compile the normal .ahk file into C#.

1

1 Answers

0
votes

Not an actual answer to your question, but if anti-cheat-detection is a problem, you might try running the compiled AHK-file from within a sandbox. I've been told this does the trick.