Rank: Advanced Member
Groups: Approved
Joined: 2/16/2021(UTC) Posts: 39 Location: Fier Thanks: 25 times Was thanked: 1 time(s) in 1 post(s)
|
Windows have the option to open with a specific extension if we add some arguments at the end ex: if we add "%1" at the end software that we are opening will insert the selected item "C:\Program Files\VEGAS\VEGAS Pro 19.0\vegas190.exe" "%1" WO "%1" software will open but if i add "%1" or %1' it says check Attachment - Any help? Thanks in advanced
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
You can do something like this. Note that this only works if you're trying to open the file while having it selected (only one file selected) in the File Explorer, then draw the gesture. Code:var files = sp.GetSelectedFilesInExplorer(action.Window.HWnd);
if(files.Length == 1) {
//I tested with Notepad since I don't have Vegas Pro installed
//sp.Run(`"C:\\WINDOWS\\system32\\notepad.exe" "${files[0]}"`);
sp.Run(`"C:\\Program Files\\VEGAS\\VEGAS Pro 19.0\\vegas190.exe" "${files[0]}"`);
}
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 2/16/2021(UTC) Posts: 39 Location: Fier Thanks: 25 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Rob You can do something like this. Note that this only works if you're trying to open the file while having it selected (only one file selected) in the File Explorer, then draw the gesture. Code:var files = sp.GetSelectedFilesInExplorer(action.Window.HWnd);
if(files.Length == 1) {
//I tested with Notepad since I don't have Vegas Pro installed
//sp.Run(`"C:\\WINDOWS\\system32\\notepad.exe" "${files[0]}"`);
sp.Run(`"C:\\Program Files\\VEGAS\\VEGAS Pro 19.0\\vegas190.exe" "${files[0]}"`);
}
Hi
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 Location: Tampa, FL Thanks: 28 times Was thanked: 419 time(s) in 356 post(s)
|
Hmm, not sure what to tell you there. It works on my system fine, are you running S+ in portable mode? If so, what happens if you run as administrator?
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 2/16/2021(UTC) Posts: 39 Location: Fier Thanks: 25 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Rob Hmm, not sure what to tell you there. It works on my system fine, are you running S+ in portable mode? If so, what happens if you run as administrator? Strange, really strange, I did once and it work only once, now giving same error Yes i try with elevated too, same thing I use installer Edited by user Friday, December 3, 2021 9:45:37 AM(UTC)
| Reason: Add word
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close