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.
windows-7 powershell start-menu
add a comment |
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.
windows-7 powershell start-menu
add a comment |
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.
windows-7 powershell start-menu
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
windows-7 powershell start-menu
asked May 3 '16 at 11:49
Friedrich
16817
16817
add a comment |
add a comment |
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}")
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
add a comment |
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}")
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
add a comment |
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}")
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
add a comment |
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}")
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}")
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
add a comment |
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
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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