KnowBrainer Speech Recognition
Decrease font size
Increase font size
Topic Title: Create script to duplicate tab in Chrome
Topic Summary:
Created On: 01/06/2021 02:21 AM
Status: Post and Reply
Linear : Threading : Single : Branch
 Create script to duplicate tab in Chrome   - Grandslam - 01/06/2021 02:21 AM  
 Create script to duplicate tab in Chrome   - monkey8 - 01/06/2021 06:43 AM  
 Create script to duplicate tab in Chrome   - Grandslam - 01/06/2021 07:43 AM  
Keyword
 01/06/2021 02:21 AM
User is offline View Users Profile Print this message

Author Icon
Grandslam
Senior Member

Posts: 131
Joined: 05/10/2019

Hi everyone,

Would really appreciate your help with this scripting question.

The keyboard shortcut to duplicate a tab in Chrome is Alt+d+Enter. This is actually a combination of 2 keyboard shortcuts - Alt+d to put the focus on the address bar, and Alt+Enter to open the URL in a new tab. However, the shortcut works if you press all 3 keys at the same time.

I've tried to write a DVC script to do this (SendKeys "{Alt+d+Enter}"), but all it does is type Alt+d+Enter. 

Any help would be appreciated.

 

 

 



 01/06/2021 06:43 AM
User is offline View Users Profile Print this message

Author Icon
monkey8
Top-Tier Member

Posts: 3724
Joined: 01/14/2008

Sub Main
    SendKeys"%d"
    Wait 0.1
    SendKeys"%{Enter}"
End Sub


-------------------------

 01/06/2021 07:43 AM
User is offline View Users Profile Print this message

Author Icon
Grandslam
Senior Member

Posts: 131
Joined: 05/10/2019

Thanks monkey8
Statistics
31980 users are registered to the KnowBrainer Speech Recognition forum.
There are currently 1 users logged in.
The most users ever online was 12124 on 09/09/2020 at 04:59 AM.
There are currently 531 guests browsing this forum, which makes a total of 532 users using this forum.

FuseTalk Standard Edition v4.0 - © 1999-2021 FuseTalk™ Inc. All rights reserved.