Windows 8 - Start MetroUI from desktop
Windows 8 - Start MetroUI from desktop
I'm working on a small utility and I need to be able to launch the Windows 8 Metro UI from the Desktop. I was thinking something like sending a keyboard shortcut or something, but I can't find any info on this.
Does anyone have a clue how I can launch the Metro UI from the Desktop? It needs to work even if a thirdparty Startmenu program is installed.
Does anyone have a clue how I can launch the Metro UI from the Desktop? It needs to work even if a thirdparty Startmenu program is installed.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Re: Windows 8 - Start MetroUI from desktop
Code: Select all
Procedure OpenStartMenu()
keybd_event_(#VK_CONTROL,0,0,0) ; press CTRL key
keybd_event_(#VK_ESCAPE ,0,0,0) ; press ESC key
keybd_event_(#VK_ESCAPE ,0,#KEYEVENTF_KEYUP,0) ; release ESC key
keybd_event_(#VK_CONTROL,0,#KEYEVENTF_KEYUP,0) ; release CTRL key
EndProcedure
OpenStartMenu()It is CTRL+ESC, see Complete list of Windows 8 shortcuts
Re: Windows 8 - Start MetroUI from desktop
Thanks for the reply 
Unfortunantly that don't work with most 3rd party start menus as they catch the keyboard combo and opens the 3rd party startmenu instead.
Unfortunantly that don't work with most 3rd party start menus as they catch the keyboard combo and opens the 3rd party startmenu instead.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Re: Windows 8 - Start MetroUI from desktop
Another way, but not so good:
Best way I found seems to be by using a .vbs script, which I create in TEMP here:
Code: Select all
Procedure OpenStartMenu()
PostMessage_(#HWND_BROADCAST,#WM_SYSCOMMAND,#SC_TASKLIST,0)
EndProcedure
OpenStartMenu()Code: Select all
Procedure.i OpenStartMenu()
;
; .vbs script from thread @ http://www.7tutorials.com/download-shortcut-windows-8-start-screen-desktop
;
Protected file
Protected tempFileName.s = GetTemporaryDirectory()+"$tmp"+Hex(Random(-1))+".vbs"
file = CreateFile(#PB_Any, tempFileName)
If file
WriteStringN(file, "Set objShell = CreateObject("+#DQUOTE$+"WScript.Shell"+#DQUOTE$+")")
WriteStringN(file, "objShell.SendKeys "+#DQUOTE$+"^{ESC}"+#DQUOTE$)
FlushFileBuffers(file)
CloseFile(file)
;Delay(50)
RunProgram(tempFileName,"","",#PB_Program_Wait|#PB_Program_Hide)
;Delay(50)
DeleteFile(tempFileName)
ProcedureReturn #True
EndIf
ProcedureReturn #False
EndProcedure
OpenStartMenu()Re: Windows 8 - Start MetroUI from desktop
The first one worked great even with a thirdparty startmenu installed.
The second one with the VB script only opened the start menu.
Seems the first option is going to work perfect for me.
Thanks a million Danilo

The second one with the VB script only opened the start menu.
Seems the first option is going to work perfect for me.
Thanks a million Danilo
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Re: Windows 8 - Start MetroUI from desktop
Windows 8, the operating system its self, is great, however, the GUI is like it was designed by a bunch of circus clowns on crack for those who are not power users.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Windows 8 - Start MetroUI from desktop
Huh? They must of made some serious improvements since the Beta thenSFSxOI wrote:Windows 8, the operating system its self, is great, however, the GUI is like it was designed by a bunch of circus clowns on crack for those who are not power users.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Windows 8 - Start MetroUI from desktop
I was, honestly, one of the biggest sceptics when I first tested an alpha version of Win8. But after using it on my 6 year old mini laptop with a single core 1.6GHz atom CPU with 1GB of RAM, I am convinced that this is the best Windows so far. It is super optimized and very fast.
Yes, the Metro UI gave me nightmares for a long time, but I'm getting used to it. But, that said, I do have Stardock Start8 on all my computers now, so they basically all work and look almost the same as Windows 7.
Yes, the Metro UI gave me nightmares for a long time, but I'm getting used to it. But, that said, I do have Stardock Start8 on all my computers now, so they basically all work and look almost the same as Windows 7.
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
Re: Windows 8 - Start MetroUI from desktop
That is encouraging. I heard Windows 8 is tighter but no chance yet to try.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Re: Windows 8 - Start MetroUI from desktop
Yeah it does feel tighter. Like it's better "screwed together" in car-terms hehehe
I Stepped On A Cornflake!!! Now I'm A Cereal Killer!
