[v2.0.2] A_MyDocuments set to blank

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
User avatar
Delta Pythagorean
Posts: 628
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

[v2.0.2] A_MyDocuments set to blank

15 Feb 2023, 08:10

As of currently, the variable A_MyDocuments is giving a blank result.
Also, if it's of any help, I'm running windows 11 with OneDrive "aggressively" uninstalled. I've uninstalled it normally and deleted several folders that OneDrive creates (such as the useless Documents folder).

Here's just a test code:

Code: Select all

#Requires AutoHotkey v2.0

MsgBox(A_MyDocuments)
And here's a screenshot of that code:
Screenshot 2023-02-15 080959.png
Screenshot 2023-02-15 080959.png (2.15 KiB) Viewed 328 times


[Mod action: Moved topic from “Bug Reports”]

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat

User avatar
Delta Pythagorean
Posts: 628
Joined: 13 Feb 2017, 13:44
Location: Somewhere in the US
Contact:

Re: [v2.0.2] A_MyDocuments set to blank

15 Feb 2023, 08:31

After review on the AHK discord, I've learned that I did not in fact entirely remove OneDrive from my computer. Within the registry Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders there exists the Personal key-value pair. The value was set to the OneDrive folder, and because that folder did not exist, it was reporting it as blank. So by modifying this key to the default windows folder: %USERPROFILE\Documents I was able to clear this conundrum.

[AHK]......: v2.0.12 | 64-bit
[OS].......: Windows 11 | 23H2 (OS Build: 22621.3296)
[GITHUB]...: github.com/DelPyth
[PAYPAL]...: paypal.me/DelPyth
[DISCORD]..: tophatcat


Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: Draken, Giresharu, jackman, songdg and 56 guests