Announcement

Collapse
No announcement yet.

Any form to edit Shortcuts?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Any form to edit Shortcuts?

    Hello, is there any form to edit existing shorcuts from each programs to change their properties? Just for know. Because i can't find nothing. I hope for any answer, Regards.

  • #2
    LUACom Plugin



    Code:
    luacom=require'luacom'
    
    WshShell = luacom.CreateObject("WScript.Shell")
    lshortcut=WshShell:CreateShortcut(_DesktopFolder .. "\\yourshortcut.lnk")
    shortcut.WindowStyle = 4 (normal)       (3 maximized)  (7 minimized)
    shortcut.IconLocation = "youricon path"
    shortcut.TargetPath = "yourexe path"
    shortcut.Hotkey = "ALT+CTRL+Z"
    shortcut:Save()​

    Comment


    • #3
      Ooh, Thank you.

      Comment


      • #4
        You can also use :
        Shell.CreateShortcut(_DesktopFolder, "My Shortcut", "C:\\Program Files\\MyApp\\app.exe", "", "", "C:\\Program Files\\MyApp\\myicon.ico", 0, SW_MAXIMIZE, nil);

        Creates a shortcut on the user's Desktop with the "myicon.ico" file icon and the label "My Shortcut." The shortcut is set to point to the file "app.exe" and will launch it in "maximized" mode.

        Note: _DesktopFolder is a built-in variable that contains the path to the user's "Desktop" folder.
        from HELP file
        also I am working on an example
        Click image for larger version

Name:	shortcut_editor.png
Views:	116
Size:	116.6 KB
ID:	310488

        Comment


        • #5
          Really helpful too. Very late response from me, but thank you for your contribution.

          Comment


          • #6
            I was like a month to try to understand it, but now i learned how to use it. Thanks.

            Comment

            Working...
            X
            😀
            🥰
            🤢
            😎
            😡
            👍
            👎