Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attach toolbar to website
i am sorry for not investigating, c# takes all my time.

how to attach a toolbar to a page when using firefox ?

doesn't the window tittle show the page/site name?
when it switches you could have the toolbar show up and disappear as it changes.
An old blog on QM coding and automation.

The Macro Hook
Trigger !n"Quick Macros Forum" "MozillaUIWindowClass"     Help - how to add the trigger to the macro
Copy      Help
;/hook tb_hook_attach_to_website
Macro924 :mac "Macro924"
Macro923 :mac "Macro923"

Function tb_hook_attach_to_website
Copy      Help
function# hWnd message wParam lParam

sel message
,case WM_INITDIALOG ;;note: in QM < 2.2.0, this message is not sent. Use WM_CREATE instead.
,SetTimer hWnd 100 500 0
,case WM_TIMER
,str s.getwintext(GetToolbarOwner(hWnd))
,if(find(s "Quick Macros Forum")<0) clo hWnd
i never said thank you for this example.
well now i did.
to avoid flicker while switching tabs you should change SetTimer to:

SetTimer hWnd 100 10 0
Maybe better would be to use another way, without tb hook function.

A function with trigger !n"" "MozillaUIWindowClass" could create and close toolbars.
Function ff_tb_manager
Trigger !n"" "MozillaUIWindowClass"     Help - how to add the trigger to the macro
Copy      Help
int hwnd=val(_command)
str s.getwintext(hwnd)
OnScreenDisplay s 2
yes, i had this mind too.

Function firefox_change
Trigger !n"$." "MozillaUIWindowClass" "*" "MozillaWindowClass" "" 0x6 /FIREFOX     Help - how to add the trigger to the macro
Copy      Help
int hwnd=val(_command)
str title.getwintext(hwnd)
title.findreplace(" - Mozilla Firefox")
out title

i want to control it by address, for that only acc works.
or do you know another way how to retrieve info from firefox tab ?

if ff.url contains then show qmWebBar. (and when in ff.url there there is ?mode=edit then show buttons for extra composing message buttons)
when ff.url contains show microbenderBar
... on ff.url="" show apacheBar
no, only acc
Value of DOCUMENT, or get from address bar.
i wonder if info about actual tab can be retrieved from a file in firefox cache.
that would make it easier.

when that does not exist then i will try to write a firefox extension which will save to a log file on
each tab click.
_CACHE_001_ in the firefox cache some info.
i opened the file with my editor (n++) and searched for the links of my open tabs and found them.
but i am not good in reading such files, maybe you can find out if there is a logic structure we could use.

Forum Jump:

Users browsing this thread: 1 Guest(s)