need to add opt clip 1
i don't know if your toolbar is attached to chrome window or not. below is code for attached toolbar and functions run off that toolbar
Toolbar Toolbar_Attached_To_Chrome
Trigger !a"- Google Chrome" "Chrome_WidgetWin_1"
toolbar functions
Function GetInfo_Acc
Function GetInfo_tabcopy
Also make sure Enable chrome acc when it starts is checked in qm options
qm window menu tools/options
spe -2;;autodelay for code to run smoother if this code is in a function
opt clip 1;; this sets options to not restore clipboard after using getsel
int w=win("- Google Chrome" "Chrome_WidgetWin_1")
act w
key Ac ;; Alt+C
0.3;;needs some delay here for tabcopy to finish
str tabcopystextboth.getclip
str td.timeformat("{hh:mm tt} - {ddMMMyy}")
str contents.getsel
str result=F"{tabcopystextboth}[]{td}[](MY CHROME COPIED CONTENTS)[][]{contents}"
out result;; just here to show output in qm not needed
result.setclipi don't know if your toolbar is attached to chrome window or not. below is code for attached toolbar and functions run off that toolbar
Toolbar Toolbar_Attached_To_Chrome
Trigger !a"- Google Chrome" "Chrome_WidgetWin_1"

Use QM :int+ c_tbwindow=GetToolbarOwner(TriggerWindow); mac "GetInfo_Acc"
Use TabCopy :int+ c_tbwindow=GetToolbarOwner(TriggerWindow); mac "GetInfo_tabcopy"toolbar functions
Function GetInfo_Acc
opt clip 1
spe -2
int+ c_tbwindow
int w1=c_tbwindow
Acc a.Find(w1 "DOCUMENT" "" "" 0x2000 3)
str title=a.Name
str url=a.Value
str td.timeformat("{hh:mm tt} - {ddMMMyy}")
str contents.getsel
str result=F"{title}[]{url}[]{td}[](MY CHROME COPIED CONTENTS)[][]{contents}"
out result;; just here to show output in qm not needed
result.setclip
act _hwndqm;;just here to show qm window again not neededFunction GetInfo_tabcopy
spe -2
opt clip 1
int+ c_tbwindow
int w1=c_tbwindow
str s.all; s.setclip
key Ac ;; Alt+C
0.3;;needs some delay here for tabcopy to finish
str tabcopystextboth.getclip
str td.timeformat("{hh:mm tt} - {ddMMMyy}")
str contents.getsel
str result=F"{tabcopystextboth}[]{td}[](MY CHROME COPIED CONTENTS)[][]{contents}"
out result;; just here to show output in qm not needed
result.setclip
act _hwndqm;;just here to show qm window again not neededAlso make sure Enable chrome acc when it starts is checked in qm options
qm window menu tools/options
