| View previous topic :: View next topic |
| Author |
Message |
instantrunoff
Joined: 13 Jan 2008 Posts: 115
|
Posted: Tue Nov 03, 2009 6:05 pm Post subject: Why doesn't this work now that I have Windows 7 64-bit? |
|
|
The following worked to open multiple files of different file types in Vista 32-bit, but it doesn't work in Windows 7 64-bit. Any ideas why? Thank you.
| Code: | #IfWinActive, ahk_class CabinetWClass
Enter:: ; MultiRun
ControlGetFocus, ctl, A
IfEqual, ctl, SysListView321
{
clipback := ClipboardAll
clipboard =
Send +{appskey}a
ClipWait, 2
StringReplace, clipboard, clipboard, `n, `n, UseErrorLevel
If(Errorlevel > 15)
{
MsgBox, 49, Open %Errorlevel% items?, To stop opening items at any time, press Esc.
IfMsgBox, Cancel
{
clipboard := clipback
clipback =
Return
}
}
Loop, parse, clipboard, `n, `r
{
GetKeyState, escpress, Esc, P
IfEqual, escpress, U
Run, %A_LoopField%
Else Break
}
clipboard := clipback
clipback =
}
else Send {enter}
Return
#IfWinActive |
|
|
| Back to top |
|
 |
Guest
|
Posted: Tue Nov 03, 2009 6:13 pm Post subject: |
|
|
which part is it not working?
we dont have much win7 64bit users here, so u need to explain more |
|
| Back to top |
|
 |
instantrunoff
Joined: 13 Jan 2008 Posts: 115
|
Posted: Tue Nov 03, 2009 6:22 pm Post subject: |
|
|
| Anonymous wrote: | which part is it not working?
we dont have much win7 64bit users here, so u need to explain more |
When I press Enter with a Windows Explorer window active and multiple items selected, nothing happens. The script used to open the items. |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Tue Nov 03, 2009 6:26 pm Post subject: |
|
|
| I would guess that CabinetWClass is not valid in Win7. |
|
| Back to top |
|
 |
instantrunoff
Joined: 13 Jan 2008 Posts: 115
|
Posted: Tue Nov 03, 2009 6:39 pm Post subject: |
|
|
| jaco0646 wrote: | | I would guess that CabinetWClass is not valid in Win7. |
According to AutoIt Window Spy, it is correct. |
|
| Back to top |
|
 |
instantrunoff
Joined: 13 Jan 2008 Posts: 115
|
Posted: Wed Nov 04, 2009 1:43 am Post subject: It was the wrong control |
|
|
| It was the wrong control: SysListView321 is the folders list sidebar in Windows 7 Explorer. The main icon list area ClassNN is has changed to DirectUIHWND3. |
|
| Back to top |
|
 |
jaco0646
Joined: 07 Oct 2006 Posts: 3113 Location: MN, USA
|
Posted: Wed Nov 04, 2009 2:07 am Post subject: |
|
|
That would've been my second guess.  |
|
| Back to top |
|
 |
instantrunoff
Joined: 13 Jan 2008 Posts: 115
|
Posted: Wed Nov 04, 2009 2:31 am Post subject: |
|
|
| jaco0646 wrote: | | That would've been my second guess. :P |
I believe it. Thank you. |
|
| Back to top |
|
 |
|