StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
how to achieve the following gestures
Rank: Newbie
Groups: Approved
Joined: 5/17/2019(UTC) Posts: 2 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?
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 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);
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Newbie
Groups: Approved
Joined: 5/17/2019(UTC) Posts: 2 Thanks: 4 times
|
Originally Posted by: Rob 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 invalid I want to ask a few more questions -----------//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 perfectly I will continue to try, although it is difficult ,Thanks again for this amazing software
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 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
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,359 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
|
1 user thanked Rob for this useful post.
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
how to achieve the following gestures
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