Skip to content

Instantly share code, notes, and snippets.

@igromanru
Created October 28, 2013 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igromanru/7197876 to your computer and use it in GitHub Desktop.
Save igromanru/7197876 to your computer and use it in GitHub Desktop.
Create a shortcut to the Win 8 start menu.
#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