Installing AHK or SciTE4AHK creates folder in my OneDrive!

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
michaelbeijer
Posts: 83
Joined: 04 Oct 2014, 08:01
Location: Hastings, UK.
Contact:

Installing AHK or SciTE4AHK creates folder in my OneDrive!

08 Jan 2015, 17:23

Why is it that every time I install SciTE4AHK (from SciTE4AHK300601_Install.exe) or AHK (from AutoHotkey111901_Install.exe), a folder is created at C:\Users\michaelbeijer\OneDrive\AutoHotkey?

I don't want this. I uninstalled them both, and when I install them again, that damned folder is created again.

What am I missing here?

Michael
Michael Beijer
Dutch-English technical translator
Hastings, United Kingdom
Email: michael[at]beijer.uk
Website: Beijer.uk
Terminology: Beijerterm.com
AHK-learning project: Beijer.bot
Proz profile: proz.com/profile/652138
LinkedIn: linkedin.com/in/michael-beijer
User avatar
michaelbeijer
Posts: 83
Joined: 04 Oct 2014, 08:01
Location: Hastings, UK.
Contact:

Re: Installing AHK or SciTE4AHK creates folder in my OneDriv

08 Jan 2015, 17:30

OK, I seem to have isolated the problem to the SciTE4AHK300601_Install.exe installer. I just ran the AHK installer and the folder was not created.

The folder is created after I run SciTE4AHK300601_Install.exe, but only once I run SciTE4AHK for the first time and it sets up some stuff. At this point, a folder is automatically created at:

C:\Users\michaelbeijer\OneDrive\AutoHotkey

containing:

C:\Users\michaelbeijer\OneDrive\AutoHotkey\SciTE
C:\Users\michaelbeijer\OneDrive\AutoHotkey\Lib

…with all kinds of stuff in them.

Why are these files/folders being created here? Can I change this? I have a special folder elsewhere where I would like to put this stuff (namely: C:\Users\michaelbeijer\OneDrive\Programs\AutoHotkey)

Michael
Michael Beijer
Dutch-English technical translator
Hastings, United Kingdom
Email: michael[at]beijer.uk
Website: Beijer.uk
Terminology: Beijerterm.com
AHK-learning project: Beijer.bot
Proz profile: proz.com/profile/652138
LinkedIn: linkedin.com/in/michael-beijer
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: Installing AHK or SciTE4AHK creates folder in my OneDriv

08 Jan 2015, 20:38

It's supposed to be in your Documents folder. Is "OneDrive" your Documents folder; or the default save location for your Documents library? Does MsgBox %A_MyDocuments% show C:\Users\michaelbeijer\OneDrive?

I don't advocate programs creating folder structures in the user's personal folders, but that's the way it was designed. (Edit: Actually, AutoHotkey optionally uses %A_MyDocuments%\AutoHotkey.ahk and %A_MyDocuments%\AutoHotkey\Lib; so that's probably why SciTE4AutoHotkey is designed that way.)

Edit: You can try the portable download of SciTE4AutoHotkey.
User avatar
michaelbeijer
Posts: 83
Joined: 04 Oct 2014, 08:01
Location: Hastings, UK.
Contact:

Re: Installing AHK or SciTE4AHK creates folder in my OneDriv

09 Jan 2015, 04:31

Excellent, thanks! Yes, I recently changed my My Documents folder to point to my OneDrive folder. That's what's going on.

Will the portable one update just like the regular one?
Also, how can I make it so AHK scripts are edited using this portable version when I right-click at them in the taskbar and select "Edit This Script"?
Michael Beijer
Dutch-English technical translator
Hastings, United Kingdom
Email: michael[at]beijer.uk
Website: Beijer.uk
Terminology: Beijerterm.com
AHK-learning project: Beijer.bot
Proz profile: proz.com/profile/652138
LinkedIn: linkedin.com/in/michael-beijer
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: Installing AHK or SciTE4AHK creates folder in my OneDriv

09 Jan 2015, 05:20

Assuming that AutoHotkey is installed so .ahk files are registered the normal way, you can run the following script and select SciTE.exe:

Code: Select all

FileSelectFile exe, 1,,, Executables (*.exe)
if ErrorLevel
    Exit
RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, "%exe%" "`%l"
MsgBox % ErrorLevel ? "Error" : "Done"
User avatar
fincs
Posts: 527
Joined: 30 Sep 2013, 14:17
Location: Seville, Spain
Contact:

Re: Installing AHK or SciTE4AHK creates folder in my OneDriv

09 Jan 2015, 05:26

Note that having My Documents point to OneDrive will allow you to synchronize your SciTE4AutoHotkey settings and your AutoHotkey StdLibs amongst all your computers that are also configured this way.
fincs
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 - [My project list]
User avatar
michaelbeijer
Posts: 83
Joined: 04 Oct 2014, 08:01
Location: Hastings, UK.
Contact:

Re: Installing AHK or SciTE4AHK creates folder in my OneDriv

09 Jan 2015, 06:43

fincs wrote:Note that having My Documents point to OneDrive will allow you to synchronize your SciTE4AutoHotkey settings and your AutoHotkey StdLibs amongst all your computers that are also configured this way.
Yes, that was the idea. I keep all kinds of stuff in my OneDrive folder so I have access to the same stuff on all my computers. However, I had wanted to install SciTE4AutoHotkey at the former rather than the latter:

C:\Users\michaelbeijer\OneDrive\Programs\SciTE4AHK
C:\Users\michaelbeijer\OneDrive\

That is, I don't want programs installing themselves in the root of my OneDrive folder (= my redirected "My Documents" folder). I want to be able to choose where I put them.
Michael Beijer
Dutch-English technical translator
Hastings, United Kingdom
Email: michael[at]beijer.uk
Website: Beijer.uk
Terminology: Beijerterm.com
AHK-learning project: Beijer.bot
Proz profile: proz.com/profile/652138
LinkedIn: linkedin.com/in/michael-beijer
User avatar
michaelbeijer
Posts: 83
Joined: 04 Oct 2014, 08:01
Location: Hastings, UK.
Contact:

Re: Installing AHK or SciTE4AHK creates folder in my OneDriv

09 Jan 2015, 06:47

lexikos wrote:Assuming that AutoHotkey is installed so .ahk files are registered the normal way, you can run the following script and select SciTE.exe:

Code: Select all

FileSelectFile exe, 1,,, Executables (*.exe)
if ErrorLevel
    Exit
RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, "%exe%" "`%l"
MsgBox % ErrorLevel ? "Error" : "Done"
How do I run this, and do I need to change that "%exe%" to the actual location where I installed SciTE4AutoHotkey . For example, C:\Users\michaelbeijer\OneDrive\Programs\SciTE4AHK\SciTE.exe (assuming I stick the portable version there).
Michael Beijer
Dutch-English technical translator
Hastings, United Kingdom
Email: michael[at]beijer.uk
Website: Beijer.uk
Terminology: Beijerterm.com
AHK-learning project: Beijer.bot
Proz profile: proz.com/profile/652138
LinkedIn: linkedin.com/in/michael-beijer
User avatar
fincs
Posts: 527
Joined: 30 Sep 2013, 14:17
Location: Seville, Spain
Contact:

Re: Installing AHK or SciTE4AHK creates folder in my OneDriv

09 Jan 2015, 07:08

My Documents\AutoHotkey\SciTE does not contain program files, it only contains SciTE settings.
fincs
Windows 11 Pro (Version 22H2) | AMD Ryzen 7 3700X with 32 GB of RAM | AutoHotkey v2.0.0 + v1.1.36.02
Get SciTE4AutoHotkey v3.1.0 - [My project list]
lexikos
Posts: 9592
Joined: 30 Sep 2013, 04:07
Contact:

Re: Installing AHK or SciTE4AHK creates folder in my OneDriv

09 Jan 2015, 07:09

do I need to change that "%exe%"
No, the exe variable is populated by the FileSelectFile command on the first line, which shows a file selection dialog allowing you to pick a file. Hence simply "run the following script and select SciTE.exe".

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mebelantikjaya, NinjoOnline and 296 guests