Announcement

Collapse
No announcement yet.

Shell shortcut synatx problem

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

  • dremuler
    replied
    Originally posted by startup View Post
    if reso.exe is in the root of C:
    Try this


    Code:
    Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "Shortcut Name", "C:\\reso.exe" , [["Full game path" 800 600 32]], "", "", 0, SW_SHOWNORMAL, nil);
    In fact this code with certain modifications, absoluteley work.
    path was given with a file brwoser button.

    Code:
    Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "SHORTCUT NAME", path.."\\reso.exe",'"'..path..[[\game.exe" 640 480 32 60]], path, path.."\\game.ico", 0, SW_SHOWNORMAL, nil, "co");
    at this moment im testing whole project, but, your codes are very helpfully

    Leave a comment:


  • startup
    replied
    there was a closure error

    Code:
    resolution = " 720 480 32 60"
    path="C:\\Location\\sublocation";
    shkt={path .."\\app1.exe", path .."\\app2.exe" }
    for a,z in pairs (shkt) do
    Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "NAME"..a, "C:\\reso.exe", '"'..z..'"'..resolution, "", "", 0, SW_SHOWNORMAL, nil);
    end

    Leave a comment:


  • startup
    replied
    the loop for your example
    Code:
    resolution = " 720 480 32 60"
    path="C:\\Location\\sublocation";
    shkt={path .."\\app1.exe", path .."\\app2.exe" }
    for a,z in pairs (shkt) do
    Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "NAME", "reso full path", '"'..z.."'"..resolution, "", "", 0, SW_SHOWNORMAL, nil);
    end
    not tested

    Leave a comment:


  • charliechaps
    replied
    Hi your code
    Code:
    "C:\Windows\System32\notepad.exe" 1920 1080 32 60
    should be as arg
    Code:
    "C:\\Windows\\System32\\notepad.exe 1920 1080 32 60"
    Here try this example
    CreateSC.apz
    Also app should runas Admin

    Leave a comment:


  • startup
    replied
    if reso.exe is in the root of C:
    Try this


    Code:
    Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "Shortcut Name", "C:\\reso.exe" , [["Full game path" 800 600 32]], "", "", 0, SW_SHOWNORMAL, nil);

    Leave a comment:


  • dremuler
    replied
    Originally posted by herrin View Post
    I did not understand exactly what you want to do, see if this can be useful



    Code:
    [ATTACH]n302624[/ATTACH]
    sorry wasnt useful is a simply shortcut.

    look i had a program called RESO, that exe tool change the resolution when you open an app, this tool create a shortcut, the path of the shortcut looks like this:

    Code:
    "C:\reso.exe" "C:\Windows\System32\notepad.exe" 1920 1080 32 60
    That means, reso will change the resolution when you open notepad from the shortcut at 1920 x 1080 in 32 bits at 60Hz

    So i want to use the
    Shell.CreateShortcut Just to create the shortcut BUT, autoplay, doesnt let me.

    you can find RESO-O-MATIC in google and try what im saying, and click to properties and check out the path to be easy to understand.

    Leave a comment:


  • herrin
    replied
    I did not understand exactly what you want to do, see if this can be useful



    Code:
    [ATTACH]n302624[/ATTACH]

    Leave a comment:


  • dremuler
    replied
    BTW as icant edit my posts ive try this:

    Code:
    path="C:\\Location\\sublocation";
    shkt='"'.. path .."\\app1.exe".. '"' .. " ".. '"' .. path .."\\app2.exe".. '"' .. " 720 480 32 60";
    Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "NAME", shkt, "", path, "", 0, SW_SHOWNORMAL, nil, "", START_OPTION_DEFAULT);
    ive try that and now i can close dialog, BUT the shorcut gets BLANK when its created and of course not work.
    files are in the location, so.. when i click properties: the destiny its blank, BUT the working folder its filled, so whats happen?

    Leave a comment:


  • dremuler
    started a topic Shell shortcut synatx problem

    Shell shortcut synatx problem

    Well i want to create a shortcut but i have a syntax problem


    Code:
    Shell.CreateShortcut(Shell.GetFolder(SHF_DESKTOP), "NAME", "PATH\APP1.exe" "PATH\APP2.exe" 720 480 32 60, "", "", "", 0, SW_SHOWNORMAL, nil, "", START_OPTION_DEFAULT);
    app 1 will process app 2 first.
    in the dialog of windows this syntax NAME", "PATH\APP1.exe" "PATH\APP2.exe" 720 480 32 60 is correct BUT in autoplay media studio doesnt.
    cant close dialog because an error

    what can i do?

    thanks in advance
Working...
X