Autohotkey not working properly?
-
- Posts: 5
- Joined: 30 Jan 2021, 09:01
Autohotkey not working properly?
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.
Re: Autohotkey not working properly?
How can you tell? Did you run the script?
-
- Posts: 5
- Joined: 30 Jan 2021, 09:01
-
- Posts: 5
- Joined: 30 Jan 2021, 09:01
Re: Autohotkey not working properly?
It doesn't become a script file, just stays as a txt file
-
- Posts: 5
- Joined: 30 Jan 2021, 09:01
Re: Autohotkey not working properly?
This is also what i see on my new tab
-
- Posts: 5
- Joined: 30 Jan 2021, 09:01
Re: Autohotkey not working properly?
If you execute the script, does it run?
Here is a test.ahk script that you can run.
Here is a test.ahk script that you can run.
Code: Select all
MsgBox, Hello!
Re: Autohotkey not working properly?
Potentially related:
https://www.autohotkey.com/docs/FAQ.htm#rightclick
https://www.autohotkey.com/docs/FAQ.htm#rightclick
Re: Autohotkey not working properly?
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.
Re: Autohotkey not working properly?
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
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
Re: Autohotkey not working properly?
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.
Re: Autohotkey not working properly?
Great points, @boiler!