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

Notification

Icon
Error

Options
Go to last post Go to first unread
lyscop  
#1 Posted : Thursday, April 23, 2020 4:07:40 PM(UTC)
soooulp

Rank: Advanced Member

Reputation:

Groups: Moderators, Approved
Joined: 4/23/2020(UTC)
Posts: 161
China

Thanks: 46 times
Was thanked: 23 time(s) in 17 post(s)
First, I want to start a gesture on a link to open that link in a new tab, but don't view the new tab yet, open it in background, I find there is a function the following can open the link in a new tab, and turn to the new tab, but I want not turn instead stay in the current tab. How can I do it?

Supplement:

It will be nice that the new tab will open next to the current tab.

Do I get the link where the mouse is, and open a tab in background, copy it to the address bar, and press the Enter, then go back to the previous tab, whether there is a better way to achieve this?

sp.RunProgram("http://www.baidu.com", "", "open", "normal", true, false, false);


Then, I want to remove/unpin the tab from a bookmark, should I move the mouse to the star behind the address bar, and remember the location, then click the left mouse, and I remember the delete button location, then click it. so do I can do this in a better way?

StrokesPlus.net is an amazing program as far as I know. This is the first time for me to use the gesture program in PC, I am used to trying the extension in Chrome, but there is no one as good as that in Firefox, so I am glad to ask you to teach me something about this program.

Edited by user Friday, April 24, 2020 2:00:02 AM(UTC)  | Reason: Not specified

lyscop  
#2 Posted : Monday, April 27, 2020 4:01:06 AM(UTC)
soooulp

Rank: Advanced Member

Reputation:

Groups: Moderators, Approved
Joined: 4/23/2020(UTC)
Posts: 161
China

Thanks: 46 times
Was thanked: 23 time(s) in 17 post(s)
The second one is solved, there is a shortcut that Alt+r to remove the bookmark, but I should do the Ctrl+d once more.

It is the script:

sp.SendKeys("^d");
sp.SendKeys("%r");
liuxilu  
#3 Posted : Monday, April 27, 2020 1:18:22 PM(UTC)
liuxilu

Rank: Advanced Member

Reputation:

Groups: Translators, Moderators, Approved
Joined: 4/6/2020(UTC)
Posts: 79
China

Thanks: 1 times
Was thanked: 21 time(s) in 21 post(s)
Ctrl + 点击链接,有的浏览器能设置所有链接都在后台打开
先想普通办法再用S+……
lyscop  
#4 Posted : Monday, April 27, 2020 3:08:52 PM(UTC)
soooulp

Rank: Advanced Member

Reputation:

Groups: Moderators, Approved
Joined: 4/23/2020(UTC)
Posts: 161
China

Thanks: 46 times
Was thanked: 23 time(s) in 17 post(s)
It seems that I find a way to open a website in background by using the code shared by the author in the following post, the first, press F6 to focus to the address bar, and type the link, then, press Alt+Shift+Enter, it does work to open it in background. Only the process of typing the link is ignoring.

I am glad that I tried to find a shortcut to open a website on the address bar in background, and got it.

https://forum.strokesplu...sts/t5036-Three-question

Code:

//Send Alt+D/F6 to set focus to address bar in Chrome
sp.SendKeys("{F6}"); 
sp.Sleep(10);
sp.SendKeys("youtube.com~"); 
sp.SendKeys("+");
sp.Sleep(100);
//sp.SendKeys("%{Enter}"); // ~ = Alt+Enter key
sp.SendAltDown();
sp.Sleep(100);
sp.SendKeys("+{Enter}");
sp.SendAltUp();
sp.Sleep(10);
sp.MouseClick(action.Start, MouseButtons.Left, true, true);
sp.MouseMove(action.End); 
lyscop  
#5 Posted : Tuesday, April 28, 2020 2:10:57 PM(UTC)
soooulp

Rank: Advanced Member

Reputation:

Groups: Moderators, Approved
Joined: 4/23/2020(UTC)
Posts: 161
China

Thanks: 46 times
Was thanked: 23 time(s) in 17 post(s)
The two scripts work well again, but there are still some problems.

When open the customize link, it can not open beside the current tab, it will open at the end of the tab bar, and I do not how to do it.

When recovering the closed tab, it will jump to the tab again, it can not re-open in background, that makes me curious to know what if it can be done.

Edited by user Tuesday, April 28, 2020 2:12:30 PM(UTC)  | Reason: Not specified

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.