Open the start menu using Powershell











up vote
1
down vote

favorite












Am currently working on a business process automation software and literally user actions are simulated by robots. I need to pass some information to the start menu of my windows 7 and i was wondering if the windows start menu could be opened using a powershell script? As the information to open a powershell can be understood by the robots. Please any suggestions would be nice.










share|improve this question


























    up vote
    1
    down vote

    favorite












    Am currently working on a business process automation software and literally user actions are simulated by robots. I need to pass some information to the start menu of my windows 7 and i was wondering if the windows start menu could be opened using a powershell script? As the information to open a powershell can be understood by the robots. Please any suggestions would be nice.










    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      Am currently working on a business process automation software and literally user actions are simulated by robots. I need to pass some information to the start menu of my windows 7 and i was wondering if the windows start menu could be opened using a powershell script? As the information to open a powershell can be understood by the robots. Please any suggestions would be nice.










      share|improve this question













      Am currently working on a business process automation software and literally user actions are simulated by robots. I need to pass some information to the start menu of my windows 7 and i was wondering if the windows start menu could be opened using a powershell script? As the information to open a powershell can be understood by the robots. Please any suggestions would be nice.







      windows-7 powershell start-menu






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 3 '16 at 11:49









      Friedrich

      16817




      16817






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          Yes, it is possible using a little VB.



          Copy this code into Notepad, and save as startmenu.vbs. [Make sure it doesn't get saved as startmenu.vbs.txt]



          set wShell=wscript.createobject("wscript.shell")
          wShell.sendkeys "^{ESC}"
          Set WshShell = Nothing


          Then, you can just run it with cscript C:somefilepathstartmenu.vbs.



          (Obviously, you'll have to specify the path where you save it to)





          Or, translated to a Powershell solution:



          $wShell = New-Object -ComObject "wscript.shell"
          $wShell.SendKeys("^{ESC}")


          Which can be further shortened to:



          (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")  





          share|improve this answer



















          • 2




            Translated to powershell: $wShell = New-Object -ComObject "wscript.shell"; $wShell.SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:25








          • 2




            or shortened as (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:26










          • @LievenKeersmaekers You should put that in as an answer (with a brief explanation of what it's doing). :)
            – Ƭᴇcʜιᴇ007
            May 3 '16 at 12:36











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1072516%2fopen-the-start-menu-using-powershell%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          Yes, it is possible using a little VB.



          Copy this code into Notepad, and save as startmenu.vbs. [Make sure it doesn't get saved as startmenu.vbs.txt]



          set wShell=wscript.createobject("wscript.shell")
          wShell.sendkeys "^{ESC}"
          Set WshShell = Nothing


          Then, you can just run it with cscript C:somefilepathstartmenu.vbs.



          (Obviously, you'll have to specify the path where you save it to)





          Or, translated to a Powershell solution:



          $wShell = New-Object -ComObject "wscript.shell"
          $wShell.SendKeys("^{ESC}")


          Which can be further shortened to:



          (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")  





          share|improve this answer



















          • 2




            Translated to powershell: $wShell = New-Object -ComObject "wscript.shell"; $wShell.SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:25








          • 2




            or shortened as (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:26










          • @LievenKeersmaekers You should put that in as an answer (with a brief explanation of what it's doing). :)
            – Ƭᴇcʜιᴇ007
            May 3 '16 at 12:36















          up vote
          2
          down vote













          Yes, it is possible using a little VB.



          Copy this code into Notepad, and save as startmenu.vbs. [Make sure it doesn't get saved as startmenu.vbs.txt]



          set wShell=wscript.createobject("wscript.shell")
          wShell.sendkeys "^{ESC}"
          Set WshShell = Nothing


          Then, you can just run it with cscript C:somefilepathstartmenu.vbs.



          (Obviously, you'll have to specify the path where you save it to)





          Or, translated to a Powershell solution:



          $wShell = New-Object -ComObject "wscript.shell"
          $wShell.SendKeys("^{ESC}")


          Which can be further shortened to:



          (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")  





          share|improve this answer



















          • 2




            Translated to powershell: $wShell = New-Object -ComObject "wscript.shell"; $wShell.SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:25








          • 2




            or shortened as (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:26










          • @LievenKeersmaekers You should put that in as an answer (with a brief explanation of what it's doing). :)
            – Ƭᴇcʜιᴇ007
            May 3 '16 at 12:36













          up vote
          2
          down vote










          up vote
          2
          down vote









          Yes, it is possible using a little VB.



          Copy this code into Notepad, and save as startmenu.vbs. [Make sure it doesn't get saved as startmenu.vbs.txt]



          set wShell=wscript.createobject("wscript.shell")
          wShell.sendkeys "^{ESC}"
          Set WshShell = Nothing


          Then, you can just run it with cscript C:somefilepathstartmenu.vbs.



          (Obviously, you'll have to specify the path where you save it to)





          Or, translated to a Powershell solution:



          $wShell = New-Object -ComObject "wscript.shell"
          $wShell.SendKeys("^{ESC}")


          Which can be further shortened to:



          (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")  





          share|improve this answer














          Yes, it is possible using a little VB.



          Copy this code into Notepad, and save as startmenu.vbs. [Make sure it doesn't get saved as startmenu.vbs.txt]



          set wShell=wscript.createobject("wscript.shell")
          wShell.sendkeys "^{ESC}"
          Set WshShell = Nothing


          Then, you can just run it with cscript C:somefilepathstartmenu.vbs.



          (Obviously, you'll have to specify the path where you save it to)





          Or, translated to a Powershell solution:



          $wShell = New-Object -ComObject "wscript.shell"
          $wShell.SendKeys("^{ESC}")


          Which can be further shortened to:



          (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")  






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 3 '16 at 13:01

























          answered May 3 '16 at 12:05









          Android Dev

          519215




          519215








          • 2




            Translated to powershell: $wShell = New-Object -ComObject "wscript.shell"; $wShell.SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:25








          • 2




            or shortened as (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:26










          • @LievenKeersmaekers You should put that in as an answer (with a brief explanation of what it's doing). :)
            – Ƭᴇcʜιᴇ007
            May 3 '16 at 12:36














          • 2




            Translated to powershell: $wShell = New-Object -ComObject "wscript.shell"; $wShell.SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:25








          • 2




            or shortened as (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")
            – Lieven Keersmaekers
            May 3 '16 at 12:26










          • @LievenKeersmaekers You should put that in as an answer (with a brief explanation of what it's doing). :)
            – Ƭᴇcʜιᴇ007
            May 3 '16 at 12:36








          2




          2




          Translated to powershell: $wShell = New-Object -ComObject "wscript.shell"; $wShell.SendKeys("^{ESC}")
          – Lieven Keersmaekers
          May 3 '16 at 12:25






          Translated to powershell: $wShell = New-Object -ComObject "wscript.shell"; $wShell.SendKeys("^{ESC}")
          – Lieven Keersmaekers
          May 3 '16 at 12:25






          2




          2




          or shortened as (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")
          – Lieven Keersmaekers
          May 3 '16 at 12:26




          or shortened as (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}")
          – Lieven Keersmaekers
          May 3 '16 at 12:26












          @LievenKeersmaekers You should put that in as an answer (with a brief explanation of what it's doing). :)
          – Ƭᴇcʜιᴇ007
          May 3 '16 at 12:36




          @LievenKeersmaekers You should put that in as an answer (with a brief explanation of what it's doing). :)
          – Ƭᴇcʜιᴇ007
          May 3 '16 at 12:36


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1072516%2fopen-the-start-menu-using-powershell%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Probability when a professor distributes a quiz and homework assignment to a class of n students.

          Aardman Animations

          Are they similar matrix