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

Notification

Icon
Error

Options
Go to last post Go to first unread
sunman  
#1 Posted : Monday, June 10, 2019 12:51:33 PM(UTC)
sunman

Rank: Newbie

Reputation:

Groups: Approved
Joined: 5/17/2019(UTC)
Posts: 2
China

Thanks: 4 times
Hello, everyone. I am a novice in StrokesPlus.net,
I need your help. I would appreciate it if you could answer my question. Thank you~~

acMouseClick(gsx,gsy,0,1,1)
acSendKeys("{DELAY=50}V")
acMouseMove(gex,gey)

The first two steps have been implemented

sp.MouseClick(action.Start, MouseButtons.Right, true, true);
sp.SendKeys("sp.Sleep(50)v");

How to implement the third step?
Rob  
#2 Posted : Monday, June 10, 2019 1:25:51 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)
Code:
acMouseClick(gsx,gsy,0,1,1)
acSendKeys("{DELAY=50}V")
acMouseMove(gex,gey)


To StrokesPlus.net
Code:
sp.MouseClick(action.Start, MouseButtons.Right, true, true);
sp.Sleep(50);
sp.SendKeys("v"); //sp.Sleep(50) is not valid syntax here
sp.MouseMove(action.End); 
thanks 1 user thanked Rob for this useful post.
sunman on 6/10/2019(UTC)
sunman  
#3 Posted : Tuesday, June 11, 2019 11:22:34 AM(UTC)
sunman

Rank: Newbie

Reputation:

Groups: Approved
Joined: 5/17/2019(UTC)
Posts: 2
China

Thanks: 4 times
Originally Posted by: Rob Go to Quoted Post
Code:
acMouseClick(gsx,gsy,0,1,1)
acSendKeys("{DELAY=50}V")
acMouseMove(gex,gey)


To StrokesPlus.net
Code:
sp.MouseClick(action.Start, MouseButtons.Right, true, true);
sp.Sleep(50);
sp.SendKeys("v"); //sp.Sleep(50) is not valid syntax here
sp.MouseMove(action.End); 


thank you,Experiment with lowercase end is invalidBlink I want to ask a few more questionsBlushing
-----------//Calling website translation text
acSendKeys("^c")
local SearchURL="https://translate.google.com.tw/?hl=zh-TW&tab=wT#ja/zh-CN/"..acGetClipboardText()
acShellExecute("",SearchURL,"","","")

acToggleTopmost(nil,gsx, gsy) ;// Window state switching//(action.Window.TopMost) invalid

acShellExecute("explore","","","D:\\downloads",1) ; // Open folder

acShellExecute("","http://www.hello-online.org/index.php?app=picapp","","","") // Open website

I know that I am very greedy, if I can get the answer, I can leave the strokesplus perfectlyLove
I will continue to try, although it is difficultCrying ,Thanks again for this amazing softwareBigGrin

Rob  
#4 Posted : Tuesday, June 11, 2019 12:30:31 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)
No problem.

1)
Code:
sp.SendKeys("^c");
//sp.SendModifiedVKeys([vk.LCONTROL], [vk.VK_C]);  //Or this would work as well
sp.Sleep(10); //Just to make sure there is time for text to be copied to clipboard
var SearchURL="https://translate.google.com.tw/?hl=zh-TW&tab=wT#ja/zh-CN/" + clip.GetText();
sp.RunProgram(SearchURL, "", "open", "normal", true, false, false); 




2)
Code:
action.Window.TopMost = !action.Window.TopMost; //Toggle the setting




4)
Code:
sp.RunProgram("http://www.hello-online.org/index.php?app=picapp", "", "open", "normal", true, false, false); 

Edited by user Tuesday, June 11, 2019 12:32:55 PM(UTC)  | Reason: Not specified

thanks 1 user thanked Rob for this useful post.
sunman on 6/11/2019(UTC)
Rob  
#5 Posted : Tuesday, June 11, 2019 12:32:26 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)
Oops, I forgot one:

3)
Code:
sp.RunProgram("explorer", "D:\\Downloads", "open", "normal", true, false, false);

Edited by user Tuesday, June 11, 2019 12:33:12 PM(UTC)  | Reason: Not specified

thanks 1 user thanked Rob for this useful post.
sunman on 6/11/2019(UTC)
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.