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 

Why doesn't this work now that I have Windows 7 64-bit?

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



Joined: 13 Jan 2008
Posts: 115

PostPosted: Tue Nov 03, 2009 6:05 pm    Post subject: Why doesn't this work now that I have Windows 7 64-bit? Reply with quote

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
View user's profile Send private message Visit poster's website
Guest






PostPosted: Tue Nov 03, 2009 6:13 pm    Post subject: Reply with quote

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

PostPosted: Tue Nov 03, 2009 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Tue Nov 03, 2009 6:26 pm    Post subject: Reply with quote

I would guess that CabinetWClass is not valid in Win7.
Back to top
View user's profile Send private message Visit poster's website
instantrunoff



Joined: 13 Jan 2008
Posts: 115

PostPosted: Tue Nov 03, 2009 6:39 pm    Post subject: Reply with quote

jaco0646 wrote:
I would guess that CabinetWClass is not valid in Win7.


According to AutoIt Window Spy, it is correct.
Back to top
View user's profile Send private message Visit poster's website
instantrunoff



Joined: 13 Jan 2008
Posts: 115

PostPosted: Wed Nov 04, 2009 1:43 am    Post subject: It was the wrong control Reply with quote

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
View user's profile Send private message Visit poster's website
jaco0646



Joined: 07 Oct 2006
Posts: 3113
Location: MN, USA

PostPosted: Wed Nov 04, 2009 2:07 am    Post subject: Reply with quote

That would've been my second guess. Razz
Back to top
View user's profile Send private message Visit poster's website
instantrunoff



Joined: 13 Jan 2008
Posts: 115

PostPosted: Wed Nov 04, 2009 2:31 am    Post subject: Reply with quote

jaco0646 wrote:
That would've been my second guess. :P


I believe it. Thank you.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
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