Opening folders

Report problems with documented functionality
MauroG
Posts: 60
Joined: 11 Jul 2017, 05:52

Opening folders

11 Jul 2017, 16:26

I have a script to have hotkeys for specific folders, like:

Code: Select all

^!d::
{
	Run C:\Documents\
	WinWait, Documents
	Gosub, Center
	Return
}
where "Center" is:

Code: Select all

Center:
{
	WinGetPos, , , WinW, WinH, A
	WinMove, A, , A_ScreenWidth/2-WinW/2, A_ScreenHeight/2-WinH/2-60
	Return
}
to center it in the screen. It works quite fine, but since I switched to Win10 (from XP) sometime it just seems to freeze: after I opened a folder, that same folder doesn't open anymore (but the rest do), and for it to work properly I have to restart Windows Explorer services and the script itself. I can't replicate it, it just happens sometime.

When it happens, the current windows loses focus after regaining it, so it seems it's trying to open the folder; I think it could depend on WinWait instruction, but I'm not sure: for some reason maybe Run doesn't work, and the script get stuck waiting for the folder; if I change from

Code: Select all

WinWait, Documents
to

Code: Select all

WinWait, Test
I have the same issue.

I also tried to open the folder manually, hoping if the issue was the WinWait it'd be solved, but it didn't, I still had to restart Explorer and script.
User avatar
derz00
Posts: 497
Joined: 02 Feb 2016, 17:54
Location: Middle of the round cube
Contact:

Re: Opening folders

12 Jul 2017, 06:27

Might be better to start this topic in ask for help.
try it and see
...
MauroG
Posts: 60
Joined: 11 Jul 2017, 05:52

Re: Opening folders

12 Jul 2017, 06:38

Thanks, will do right away.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 108 guests