Autohotkey not working properly?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
TurboExcalibur
Posts: 5
Joined: 30 Jan 2021, 09:01

Autohotkey not working properly?

30 Jan 2021, 09:06

When make an autohotkey script and put .ahk at the end of the file name, the file doesnt convert form a notpad file to an ahk script file.
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Autohotkey not working properly?

30 Jan 2021, 09:07

How can you tell? Did you run the script?
TurboExcalibur
Posts: 5
Joined: 30 Jan 2021, 09:01

Re: Autohotkey not working properly?

30 Jan 2021, 09:08

mikeyww wrote:
30 Jan 2021, 09:07
How can you tell? Did you run the script?
It doesnt convert into a script and just stays as a txt file
TurboExcalibur
Posts: 5
Joined: 30 Jan 2021, 09:01

Re: Autohotkey not working properly?

30 Jan 2021, 09:08

It doesn't become a script file, just stays as a txt file
TurboExcalibur
Posts: 5
Joined: 30 Jan 2021, 09:01

Re: Autohotkey not working properly?

30 Jan 2021, 09:09

image.png
image.png (15.16 KiB) Viewed 585 times
This is also what i see on my new tab
TurboExcalibur
Posts: 5
Joined: 30 Jan 2021, 09:01

Re: Autohotkey not working properly?

30 Jan 2021, 09:13

image.png
image.png (17.26 KiB) Viewed 574 times
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Autohotkey not working properly?

30 Jan 2021, 09:19

If you execute the script, does it run?

Here is a test.ahk script that you can run.

Code: Select all

MsgBox, Hello!
Pepineros
Posts: 45
Joined: 16 Apr 2018, 17:26
Location: Ireland

Re: Autohotkey not working properly?

30 Jan 2021, 13:04

It looks like you have Notepad set as the default to execute .ahk files. You can search for "default apps" in your Start menu search box to check.
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Autohotkey not working properly?

30 Jan 2021, 14:16

Or:

AppsKey -> h (Open with) -> c (Choose another app) -> More apps -> Look for another app on this PC -> Always use this app to open .ahk files
User avatar
boiler
Posts: 17393
Joined: 21 Dec 2014, 02:44

Re: Autohotkey not working properly?

30 Jan 2021, 15:05

mikeyww wrote:
30 Jan 2021, 14:16
Or:

AppsKey -> h (Open with) -> c (Choose another app) -> More apps -> Look for another app on this PC -> Always use this app to open .ahk files
I’m guessing doing this and selecting Notepad is how it might have inadvertently gotten linked to Notepad in the first place. It could have been that when attempting to edit the file, instead of right-clicking and choosing “Edit,” “Open with” was chosen instead, and the option to always open this type of file using Notepad was selected.

Mind the difference between opening and editing from the right-click menu choices going forward. “Open” basically means “execute” in the case of .ahk files, unlike how opening a .docx file opens it for editing in MS Word.
User avatar
mikeyww
Posts: 27372
Joined: 09 Sep 2014, 18:38

Re: Autohotkey not working properly?

30 Jan 2021, 16:08

Great points, @boiler!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: dra3th, Google [Bot], Mateusz53, Rohwedder, Spawnova and 225 guests