Created
October 28, 2013 14:42
-
-
Save igromanru/7197876 to your computer and use it in GitHub Desktop.
Create a shortcut to the Win 8 start menu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cs ---------------------------------------------------------------------------- | |
AutoIt Version: 3.3.8.1 | |
Author: igromanru | |
Script Function: | |
Create a shortcut to the win 8 start screen. | |
#ce ---------------------------------------------------------------------------- | |
MsgBox(0,"",@StartMenuDir & "\Programs") | |
FileCreateShortcut(@ScriptDir & "\win8Shortcut.exe", @StartMenuDir & "\Programs\win8Shortcut.lnk") | |
;# Shell solution | |
;~ $objShell = ObjCreate("Shell.Application") | |
;~ $objFolder = $objShell.Namespace(@ScriptDir) | |
;~ $objFolderItem = $objFolder.ParseName(@ScriptName) | |
;~ For $val in $objFolderItem.Verbs() | |
;~ MsgBox(0,"",$val()) | |
;~ If StringInStr(StringReplace($val(),"&", ""), 'An "Start" an') Then | |
;~ $val.DoIt() | |
;~ ExitLoop | |
;~ EndIf | |
;~ Next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment