Cycling via web browser tabs with autokail
I am trying to make a macro that will cycle through and refresh the browser tabs when I press "F10". Currently it only refreshes the page I am on, it doesn't go through them, I tried searching on it but all the answers were for "AutoHotKey". So I looked at the documentation for "AutoKey" and tried to convert the "AutoHotKey" script to "AutoKey" (python) but it doesn't work and I have no idea why.
Here's the script
keyboard.send_keys ("<f5>")
keyboard.press_key ("<ctrl>")
keyboard.send_keys ("<tab>")
keyboard.release_key ("<ctrl>")
replacing lines 2 -> 4 with just "keyboard.press_key" ("<ctrl>" + "<tab>") doesn't work (I'm not entirely sure if ("<ctrl> + <tab>"), but neither one doesn't work unfortunately)
(Please keep in mind that the spaces before "keycodes" are such that Stackoverflow will show them)
Thank you all in advance !!!
source to share