Announcement

Collapse
No announcement yet.

open folder in a specific view

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • open folder in a specific view

    When using the File.Open command to open a FOLDER,

    ie.
    Code:
    File.Open("D:\\", "", SW_MAXIMIZE);
    ...is it possible to get the folder to open in a specific view'?
    Eg. thumbnail-view, list-view, tiles-view, etc...

  • #2
    BioHazard I think you may need to use some external Object~ Plugins to achieve this goal , perhaps the FREE one's prvided by : Dean Hall (AKA) RizlaUK attached may be of use in this project and more.

    Unzip these Objects into your Autoplay/Plugins/Objects Folder. Then add them to your Project through Object > Plugins.
    hope that helps.

    Attached Files

    Comment


    • #3
      BioHazard Hi here is one i've done using Luacom plugin to send keys after opening file explorer
      Cheers

      FileOpen.apz

      Comment


      • #4
        The Luacom route looks interesting ...but my target machine is WinXP which doesn't seem to respond to SendKeys.
        Any suggestions?

        Comment


        • #5
          the send keys also didn't work on win7 for some reason , ie; [CTRL]+[SHIFT]+1 opened in normal view etc. the project could be lacking something.

          Comment


          • #6
            quick google turned up some results.. https://forums.indigorose.com/forum/...095#post253095

            not fure how helpful it is.

            Comment


            • #7
              The windows explorer view keys for win7

              Click image for larger version

Name:	windows explorer view by keyboard.png
Views:	138
Size:	8.8 KB
ID:	298764 not sure about XP
              Try Google search - keys can be modified in sample
              Cheers

              Comment


              • #8
                ahh thanks colc.

                Comment


                • #9
                  This has me flummoxed. Can't get this working on XP - and Google's not much help.
                  Any of you 'ol timers' care to step in? Been at this one for days now, and it's about to do my head in.
                  I'm at the point where I'm tempted to resort to RegKey edits - which is a route I'd rather not take.

                  Comment


                  • #10
                    hi BioHazard
                    I found this,https://www.techrepublic.com/blog/wi...f-my-choosing/
                    maybe XP does not use shortcut keys for "view" of file directory but a button instead
                    I think I have an old XP machine at work,will try and check over weekend.
                    Why have U not installed Win7 - XP is dead!!!
                    Cheers Col

                    Comment


                    • #11
                      The Mode & Vid values for setting the folder view on XP are listed here:

                      ...but I can't see how to implement via your suggested Luacom route??? Do you have a link? Or a sample?

                      Comment


                      • #12
                        Hi BioHazard
                        Try this haven't tested NO XP - post results
                        Xp VewMode.apz
                        Cheers

                        Comment


                        • #13
                          Hi BioHazard
                          Forget previous post does not work with Reg details from web blog but I installed XP on old machine and this works with Luacom
                          FileOpen.apz
                          Cheers, Col

                          Comment


                          • #14
                            Yes, indeed - very nice, colc. And multi-platform options thrown in to boot - good stuff!
                            Haven't quite been able to get my head fully around the code in this, but am liking what I'm seeing.

                            Now, enlighten me here. Did you manage to cobble this together solely from info in the LuaCOM Manual?
                            And if so, where to focus for some 'bedtime-reading', so as to get a proper handle on what's actually going on here? (I'm looking at the LuaCOM manual for v1.4 - but things are still looking a little cryptic from my perspective).

                            Thanks for what you've thrown together here - it's quite impressive.

                            Comment


                            • #15
                              Just a little note I was board so I tested in on 10, didn't work for me even with the plugin enabled, I don't want it I just saying I tested it and it didn't do jack potato
                              Plugins or Sources MokoX
                              BunnyHop Here

                              Comment

                              Working...
                              X