AutoHotkey Community

It is currently May 26th, 2012, 11:07 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: November 3rd, 2009, 7:05 pm 
Offline

Joined: January 13th, 2008, 6:00 pm
Posts: 115
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2009, 7:13 pm 
which part is it not working?
we dont have much win7 64bit users here, so u need to explain more


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2009, 7:22 pm 
Offline

Joined: January 13th, 2008, 6:00 pm
Posts: 115
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2009, 7:26 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
I would guess that CabinetWClass is not valid in Win7.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 3rd, 2009, 7:39 pm 
Offline

Joined: January 13th, 2008, 6:00 pm
Posts: 115
jaco0646 wrote:
I would guess that CabinetWClass is not valid in Win7.


According to AutoIt Window Spy, it is correct.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: It was the wrong control
PostPosted: November 4th, 2009, 2:43 am 
Offline

Joined: January 13th, 2008, 6:00 pm
Posts: 115
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 4th, 2009, 3:07 am 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
That would've been my second guess. :P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 4th, 2009, 3:31 am 
Offline

Joined: January 13th, 2008, 6:00 pm
Posts: 115
jaco0646 wrote:
That would've been my second guess. :P


I believe it. Thank you.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: JSLover, Kirtman, XstatyK and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group