StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Converting Former Strokesplus Codes into New Codes
Rank: Newbie
Groups: Translators, Approved Joined: 6/14/2019(UTC) Posts: 7
Was thanked: 1 time(s) in 1 post(s)
|
acSendKeys("{DELAY=50}^c") acDelay(50) local s = acGetClipboardText() s = 'https://www.verbformen.com/conjugation/' .. s s = s ..'.htm' acShellExecute("open","rundll32.exe", "url.dll,FileProtocolHandler "..s, nil, 1) acSendKeys("^{f11}") acSendKeys("^{f11}")
I converted it as below;
sp.Sleep(50) sp.SendKeys("^c"); sp.Sleep(50); var s = clip.GetText(); var a = 'https://www.verbformen.com/conjugation/' + s; ?????????????????? sp.RunProgram("rundll32.exe", "url.dll,FileProtocolHandler " + a, "open", "normal", true, false, false); sp.SendKeys("^{f11}"); sp.SendKeys("^{f11}");
the line with questions marks, i couldn't add the former code into the new strokeplus
|
|
|
|
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)
|
".." in Lua is to combine text, just use "+" instead for JavaScript.
|
|
|
|
Rank: Newbie
Groups: Translators, Approved Joined: 6/14/2019(UTC) Posts: 7
Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
Rank: Newbie
Groups: Translators, Approved Joined: 6/14/2019(UTC) Posts: 7
Was thanked: 1 time(s) in 1 post(s)
|
acSendKeys("^c") acDelay(50) acSendKeys("%y") acDelay(500) acFindWindow("Chrome_WidgetWin_1",nil) acActivateWindow("Chrome_WidgetWin_1",1530,30,nil) acDelay(50) acSendKeys("%+t") acSendKeys("^ ")
on this part Find Window, and Activate window lines, i couldnt convert them, may you help me?
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
Scripts
»
Converting Former Strokesplus Codes into New Codes
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