StrokesPlus.net
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Sherif Aliti  
#1 Posted : Thursday, December 2, 2021 10:29:39 AM(UTC)
Sherif Aliti

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 2/16/2021(UTC)
Posts: 39
Albania
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

Attachmen
Rob  
#2 Posted : Thursday, December 2, 2021 4:03:32 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,359
United States
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]}"`);
}
thanks 1 user thanked Rob for this useful post.
Sherif Aliti on 12/2/2021(UTC)
Sherif Aliti  
#3 Posted : Thursday, December 2, 2021 6:02:30 PM(UTC)
Sherif Aliti

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 2/16/2021(UTC)
Posts: 39
Albania
Location: Fier

Thanks: 25 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: Rob Go to Quoted Post
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


Getting this error
Rob  
#4 Posted : Thursday, December 2, 2021 6:42:16 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,359
United States
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?
thanks 1 user thanked Rob for this useful post.
Sherif Aliti on 12/2/2021(UTC)
Sherif Aliti  
#5 Posted : Thursday, December 2, 2021 7:20:25 PM(UTC)
Sherif Aliti

Rank: Advanced Member

Reputation:

Groups: Approved
Joined: 2/16/2021(UTC)
Posts: 39
Albania
Location: Fier

Thanks: 25 times
Was thanked: 1 time(s) in 1 post(s)
Originally Posted by: Rob Go to Quoted Post
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

Users browsing this topic
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.