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

Notification

Icon
Error

Options
Go to last post Go to first unread
blumina  
#1 Posted : Thursday, September 19, 2019 10:34:51 AM(UTC)
blumina

Rank: Newbie

Reputation:

Groups: Approved
Joined: 9/19/2019(UTC)
Posts: 6
Germany

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
Rob  
#2 Posted : Thursday, September 19, 2019 11:18:29 AM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 401
United States

Thanks: 5 times
Was thanked: 78 time(s) in 68 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); 
blumina  
#3 Posted : Thursday, September 19, 2019 1:35:37 PM(UTC)
blumina

Rank: Newbie

Reputation:

Groups: Approved
Joined: 9/19/2019(UTC)
Posts: 6
Germany

Hi,

thanks for the very fast response. I was very happy about the working solution.

Greetings from Germany, blumina.
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.