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 4:34:51 PM(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 5:18:29 PM(UTC)
Rob

Rank: Administration

Reputation:

Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 1,349
United States
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); 
blumina  
#3 Posted : Thursday, September 19, 2019 7: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.