Hi have a VBS script to close Chrome's current tab:
Code: Select all
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate("Chrome")
WshShell.SendKeys "^w"
WshShell.AppActivate("TextPad"
I saved this as Close-Current-Chrome-Tab.vbs
When I simply double-click on it, it works as expected.
Then I created a Push2Run card:
Description: close current tab
Listen for: close current tab
Open: close-current-chrome-tab.vbs
Start directory: C:\
When I right click on the card and select Run, it works as expected.
I'm using Alexa > ITTT > Pushover
I say, "Alexa trigger close current tab"
Push2Run status: Pushover requested to run - "close current tab" - Action completed successfully
The tab appears to refresh, but that's it.