Starting AHK Script from Visual Studio 2017 C# Code

Get help with using AutoHotkey (v1.1 and older) 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! :)
gregster
Posts: 9002
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: 9583
Joined: 30 Sep 2013, 04:07
Contact:

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 (v1)”

Who is online

Users browsing this forum: Google [Bot], mikeyww and 340 guests