AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Selecting a file in Explorer

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
quatermass



Joined: 14 Dec 2005
Posts: 102

PostPosted: Tue May 13, 2008 4:50 pm    Post subject: Selecting a file in Explorer Reply with quote

I'm running XP Pro SP2 and AHK 1.0.47.06


I'm trying to press a key to make a new folder in an open Explorer window and selecting it.

This it does.

But on opening a folder with lots of files in it (2000+) and using

var = AaFolder
WinGetActiveTitle,wpath
ControlSend,SysListView321,%var%,%wpath%

it often selects the WRONG folder though the path is valid.

But if I place a refresh and a delay of 2.5s it improves things a lot!

ie
Send, {F5}
sleep, 2500
ControlSend,SysListView321,%var%,%wpath%

But if I use

var = AaFolder
WinGetActiveTitle,wpath
run, explorer.exe /select`,%wpath%\%var%

It opens a new instance of Explorer, but hey, it selects the file!

So is ControlSend,SysListView321 buggy?
_________________
Stuart Halliday
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group