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#.