Starting AHK Script from Visual Studio 2017 C# Code

Get help with using AutoHotkey and its commands and hotkeys
lulu2203
Posts: 1
Joined: 21 Jul 2018, 15:38

Starting AHK Script from Visual Studio 2017 C# Code

21 Jul 2018, 15:46

Hey Guys, I'm a total newbie to AHK and Visual Studio. I want to start an AHK Script from a .NET Console Application using C# code, but I really don't know how. Could someone tell me step by step what I have to do?
Thank you! :)
User avatar
gregster
Posts: 1394
Joined: 30 Sep 2013, 06:48

Re: Starting AHK Script from Visual Studio 2017 C# Code

21 Jul 2018, 15:56

This should go into the 'Ask for Help' subforum instead.
But wouldn't it rather be a question for the C# community? (Well, probably someone here can help you anyway)
If AHK is installed, any AHK script can be started like any other program (an *.ahk-script is just a text file, but it will be started via Autohotkey.exe after installation, if you try to run it).
lexikos
Posts: 6176
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: Starting AHK Script from Visual Studio 2017 C# Code

21 Jul 2018, 17:45

.net - Launching an application (.EXE) from C#? - Stack Overflow

You can launch either the .ahk file itself or AutoHotkey.exe with the .ahk file as an argument.

Return to “Ask For Help”

Who is online

Users browsing this forum: Azev, Bing [Bot], grimboto, TheBeginner and 208 guests