StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Script / Programs / Website / Strg 2x
Rank: Newbie
Groups: Approved
Joined: 9/19/2019(UTC) Posts: 6
|
Hello I use strokeit for many years. Unfortunately, the program is no longer being developed. I like S+ very much, unfortunately I can't program. Question 1: What is the script command to call Excel? Sp. RunProgram(RunProgram) (C:-Program Files-Microsoft Office-root-Office16-EXCEL. EXE") ?! Question 2: How can I access a website? acShellExecute("open"), "open" http://www.google.com", " " ", " ", " " " " " " " " " " " " " ?! Question 3: Copernic destop search starts with 2x of the CTRL keys. How do I create a shortcut for it? Thank you for the editing. Translated from German with google translator) Blumina
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
This should work fine: Code://Open Excel
sp.RunProgram("excel", "", "open", "normal", true, false, false);
//Open Google
sp.RunProgram("https://www.google.com", "", "open", "normal", true, false, false);
//Send Control down and up twice
sp.SendControlDown();
sp.Sleep(5);
sp.SendControlUp();
sp.Sleep(5);
sp.SendControlDown();
sp.Sleep(5);
sp.SendControlUp();
The Excel one might not work if Excel isn't recognized by Windows as a generic app or on the app path, so you might need to specifiy the full path like: Code://Open Excel by full path to exe, must escape backslashes with an extra backslash
sp.RunProgram("C:\\Program Files\\Microsoft Office\\root\\Office16\\EXCEL.EXE", "", "open", "normal", true, false, false);
|
|
|
|
Rank: Newbie
Groups: Approved
Joined: 9/19/2019(UTC) Posts: 6
|
Hi,
thanks for the very fast response. I was very happy about the working solution.
Greetings from Germany, blumina.
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Script / Programs / Website / Strg 2x
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