Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chrome help - browse back
#1
Hello,
I'm trying to set the browse back button on my mouse to do this:
- browse back when this function is active (the current page was opened in the same tab following a link)
- close tab if the current page was opened in a new tab from a link found in another tab (browse back not active in this case) - (in this way return to the page where the link was)
Any ideas?
Thanks
#2
Macro Chrome back or close tab
Trigger F7     Help - how to add the trigger to the macro
Code:
Copy      Help
;find Back button
int w=win("- Google Chrome" "Chrome_WidgetWin_1")
if(!w) ret
Acc a.Find(w "TOOLBAR" "Google Chrome Toolbar|main" "" 0x1082)
a.Find(a.a "BUTTONDROPDOWN" "Back" "" 0x1005)
;is it disabled?
if a.State&STATE_SYSTEM_UNAVAILABLE ;;disabled
,OnScreenDisplay "close" 1
else
,OnScreenDisplay "back" 1
#3
Great!!!!
Thank you.
#4
Hello

Can you help me again.
The previous code seems to be broken.
Probably a change in chrome.
Also, can you tell me a way to adjust the code by myself? A tool to find the back button identification code and state.
Thank you.
#5
Toolbar name changed to "main". I changed the macro in the first post, now it is compatible with old and new Chrome versions.

The tool is "Find accessible object" dialog. Look in QM floating toolbar.
#6
Thanks,
My version is slower

find Back button
int w=win("- Google Chrome" "Chrome_WidgetWin_1")
if(!w) ret

Acc a.Find(w "BUTTONDROPDOWN" "Back" "class=Chrome_WidgetWin_1[]state=0x40100000 0" 0x100A)

is it disabled?
if a.State&STATE_SYSTEM_UNAVAILABLE ;;disabled
OnScreenDisplay "close" 1
else
OnScreenDisplay "back" 1


Forum Jump:


Users browsing this thread: 1 Guest(s)