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

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

Confusedhock:
pi
#2
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
#3
example
Toolbar
Trigger !n"Quick Macros Forum" "MozillaUIWindowClass"     Help - how to add the trigger to the macro
Code:
Copy      Help
;/hook tb_hook_attach_to_website
Macro924 :mac "Macro924"
Macro923 :mac "Macro923"

Function tb_hook_attach_to_website
Code:
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
,
#4
i never said thank you for this example.
well now i did.
:lol:
pi
#5
to avoid flicker while switching tabs you should change SetTimer to:

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

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

Function firefox_change
Trigger !n"$." "MozillaUIWindowClass" "*" "MozillaWindowClass" "" 0x6 /FIREFOX     Help - how to add the trigger to the macro
Code:
Copy      Help
;out
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 quickmacros.com 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 microbender.com show microbenderBar
... on ff.url="192.172.1.1" show apacheBar
pi
#9
no, only acc
Value of DOCUMENT, or get from address bar.
#10
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.
pi
#11
_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.
pi


Forum Jump:


Users browsing this thread: 1 Guest(s)