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

Notification

Icon
Error

Options
Go to last post Go to first unread
cro_magnon  
#1 Posted : Saturday, June 15, 2019 11:01:17 AM(UTC)
cro_magnon

Rank: Newbie

Reputation:

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
Rob  
#2 Posted : Saturday, June 15, 2019 11:48:43 AM(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:
s = s + '.htm'


".." in Lua is to combine text, just use "+" instead for JavaScript.
cro_magnon  
#3 Posted : Saturday, June 15, 2019 11:50:46 AM(UTC)
cro_magnon

Rank: Newbie

Reputation:

Groups: Translators, Approved
Joined: 6/14/2019(UTC)
Posts: 7

Was thanked: 1 time(s) in 1 post(s)
thanks a lot
cro_magnon  
#4 Posted : Saturday, June 15, 2019 1:23:59 PM(UTC)
cro_magnon

Rank: Newbie

Reputation:

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?
Users browsing this topic
Guest
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.