quatermass
Joined: 14 Dec 2005 Posts: 102
|
Posted: Tue May 13, 2008 4:50 pm Post subject: Selecting a file in Explorer |
|
|
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 |
|