Hi,
Is it possible to use AHK to rename chrome tabs?
IE: I use AHK to open several webpage and I want to rename them like 1,2,3,4,5 then use AHK to open these pages with title depending on where my variable want to go.
Like -> open 10 pages, name them 1,2,3,4,5,6,7,8,9,10 in the order the page was open. In a loop my variable change according to where it need to go. variable = X, focus
page X, do things then continue the loop to other pages.
Ahk renaming Chrome tabs Topic is solved
Re: Ahk renaming Chrome tabs
I read somewhere that ahk could rename chrome tab or so
Anyone know how?
Anyone know how?
- ankitkraken
- Posts: 84
- Joined: 01 Jun 2019, 08:47
- Location: India
Re: Ahk renaming Chrome tabs
Man, I came looking for the same thing. Sad that no one has looked at this thread.
- ankitkraken
- Posts: 84
- Joined: 01 Jun 2019, 08:47
- Location: India
Re: Ahk renaming Chrome tabs Topic is solved
Found this code somewhere. It's working to rename the Chrome Tabs.
But the name would reset if you close the tab or refresh it.
This renames the tab to = new_title. To use a variable value as new tab name use the following code:
But the name would reset if you close the tab or refresh it.
Code: Select all
driver.executeScript("document.title = 'new_title'")
Code: Select all
new_title_script := "document.title = '" var_new_title "'"
driver.executeScript(new_title_script)
Re: Ahk renaming Chrome tabs
@ankitkraken:
Well, without the executescript() function/method, this won't do anything. Where does driver point to?
Is it Selenium-related, or the Acc.ahk-approach, or something else?
(Of course, the js-snippet setting the page title can be used with either approach.)
It would probably help if you would link to this "somewhere" where you found it.
Well, without the executescript() function/method, this won't do anything. Where does driver point to?
Is it Selenium-related, or the Acc.ahk-approach, or something else?
(Of course, the js-snippet setting the page title can be used with either approach.)
It would probably help if you would link to this "somewhere" where you found it.
Who is online
Users browsing this forum: Joey5 and 115 guests