problem with " .ahk "

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
mernda
Posts: 5
Joined: 29 Jan 2020, 20:05

problem with " .ahk "

29 Jan 2020, 20:10

i have this problem that any script doesn't have the "H" icon so i tried to open it with "autohotkey program" which didn't work so i changed the default file multi times and the script is not a script anymore it is just a file with " .ahk " on it i deleted all default and now the file is unknown even the one in the autohotkey file any help?
Attachments
Annotation 2020-01-30 040941.jpg
Annotation 2020-01-30 040941.jpg (28 KiB) Viewed 824 times
scriptors
Posts: 227
Joined: 25 Feb 2016, 09:01

Re: problem with " .ahk "

30 Jan 2020, 04:02

select one .ahk file
right mouse button and "open with" ...

search for Autohotkey.exe and check "use this app everytime" ... (don't know in english)
mernda
Posts: 5
Joined: 29 Jan 2020, 20:05

Re: problem with " .ahk "

30 Jan 2020, 09:39

i did that and the file had the green icon with H in it and it didn't open as a script and it doesn't work it opens the program ahk it self
gregster
Posts: 9086
Joined: 30 Sep 2013, 06:48

Re: problem with " .ahk "

30 Jan 2020, 09:58

mernda wrote:
30 Jan 2020, 09:39
it opens the program ahk it self
autohotkey.exe is just an interpreter for ahk scripts (which are just text files with a special file extension) - so I am not sure, what the "program ahk it self" should mean. Did the AHK help file open with a Welcome message?

Or did it open the script in an editor (like Notepad) instead of running it? Then you might need this: How do I restore the right-click context menu options for .ahk files?
scriptors
Posts: 227
Joined: 25 Feb 2016, 09:01

Re: problem with " .ahk "

30 Jan 2020, 10:15

Open Notepad, copy and paste this:

Code: Select all

Process, Priority, , High
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

^!+Space:: ; CTRL+ALT+SHIFT+SPACE
MsgBox WORK !
Return
Save as: test.ahk

Double click on it and try to press CTRL+ALT+SHIFT+SPACE
mernda
Posts: 5
Joined: 29 Jan 2020, 20:05

Re: problem with " .ahk "

30 Jan 2020, 12:56

it seams i didn't explain enough ....
any file with ( .ahk ) is unknown file i have to choose program to open it with so the only program there is autohotkey if you looked at the file icon it's green and has H and the ( .ahk ) file is not script anymore it's like normal file and there is no program to choose as default within autohotkey file has the image like " Ahk2Exe.exe " to make the ( .ahk ) files go back to which they used to be a file with purple ( H ) icon and work as script
Attachments
3.jpg
the icon thats suppose to be on any .ahk file
3.jpg (3.46 KiB) Viewed 705 times
2.JPG
there is no other program within the autohotkey file got the script purple H image
2.JPG (42.53 KiB) Viewed 705 times
1.JPG
the file is no more script i have to open it with notebook then convert it to .exe to use it that is just too much consuming if i want to edit the thing every single moment i have to go through all this i want the .ahk files to go back where they used to be a script with purple H icon
1.JPG (30.79 KiB) Viewed 705 times
gregster
Posts: 9086
Joined: 30 Sep 2013, 06:48

Re: problem with " .ahk "

30 Jan 2020, 13:06

I would try the procedure described in the FAQ question I linked to above.
That means, applying the registry patch and re-installing AHK.
mernda
Posts: 5
Joined: 29 Jan 2020, 20:05

Re: problem with " .ahk "

30 Jan 2020, 13:32

i used that i don't know what it should do and i got that "work" message but nothing changed ... well thank you guys ..

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Giresharu, RussF and 193 guests