New AHK file is empty, why? Topic is solved
New AHK file is empty, why?
Hello,
Windows 10 64 bits.
Latest current version is showing this when a new files is created on my personal PC:
#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.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
But my work PC wich have the current autohotkey version from MS Store shows nothing when a new file is created. It happened when it got updated from the version 1.1.33.10.
Any Idea what is wrong? I have no access to the directory nore uninstalling and reinstalling of ahk without customer support .
Windows 10 64 bits.
Latest current version is showing this when a new files is created on my personal PC:
#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.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
But my work PC wich have the current autohotkey version from MS Store shows nothing when a new file is created. It happened when it got updated from the version 1.1.33.10.
Any Idea what is wrong? I have no access to the directory nore uninstalling and reinstalling of ahk without customer support .
Re: New AHK file is empty, why?
You can create scripts with any text editor. Perhaps you had set up your editor with a template of some kind. That is up to you.
- WalkerOfTheDay
- Posts: 710
- Joined: 24 Mar 2016, 03:01
Re: New AHK file is empty, why?
You probably are using an editor like AHK Studio at home which creates those lines automatically.
If you don't have it installed at work you are probably using notepad?
If you don't have it installed at work you are probably using notepad?
Re: New AHK file is empty, why?
https://www.autohotkey.com/board/topic/39420-where-is-the-new-autohotkey-scriptahk-template/
It might be related to access permissions/restrictions regarding the Windows directory ("… ShellNew\Template.ahk ") ?
It might be related to access permissions/restrictions regarding the Windows directory ("… ShellNew\Template.ahk ") ?
Re: New AHK file is empty, why?
So in other words there is no hope?
I am using notpad and notpad++ as I don't have access to site4u ect because of security. Had to beg for ahk from store editon in the first place:D
I can create files and they run fine but suddently they are emtpy and I don't like it.
Is there a spesefic thing I could report to IT guys to fix this? As itwas working before the update. They have missed up some other stuff too like encoding standard ...
I am using notpad and notpad++ as I don't have access to site4u ect because of security. Had to beg for ahk from store editon in the first place:D
I can create files and they run fine but suddently they are emtpy and I don't like it.
Is there a spesefic thing I could report to IT guys to fix this? As itwas working before the update. They have missed up some other stuff too like encoding standard ...
Re: New AHK file is empty, why? Topic is solved
Well, they should simply drop your individual template file here: "C:\Windows\ShellNew\Template.ahk".
Regarding Notepad++ inspect the link I've provided above, and its registry settings.
That should do the trick. Good luck.
Regarding Notepad++ inspect the link I've provided above, and its registry settings.
That should do the trick. Good luck.
Re: New AHK file is empty, why?
Just so there's no confusion about an editor necessarily being the cause of this (although some might)... The standard installation of AHK creates the file with those lines in it when you create a new AHK file using the right-click context menu "New" > "AutoHotkey Script" in File Explorer without even having touched an editor. When that newly created file is then viewed in any editor including no-frills Notepad, it will be apparent that those lines are already in the file.WalkerOfTheDay wrote: ↑ You probably are using an editor like AHK Studio at home which creates those lines automatically.
Re: New AHK file is empty, why?
Thanks, boiler. I never tried that!
Re: New AHK file is empty, why?
Thanks!
I will now report
Im bad at explaining clearly, it is as Boiler states.
I will now report
Im bad at explaining clearly, it is as Boiler states.