Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is it possible to assign an owner to a Toolbar started from a key trigger
#1
Hi Gintaras,

Can I assign an owner to some toolbar that is not started by a Windows Event trigger but by a key trigger, in order to make the Toolbar's position relative to a window of my choice ?

Thank you !
Gert
#2
it's certainly possible if i understand you correctly

a couple examples
#1
toolbar is attached to whatever window is active when Ctrl+F1 is pressed

Trigger CF1     Help - how to add the trigger to the macro
Code:
Copy      Help
int hwnd = win()
mac "ToolBar1" hwnd

#2
this one waits till you left click a window after pressing Ctrl+F1

Trigger CF1     Help - how to add the trigger to the macro
Code:
Copy      Help
OnScreenDisplay "Move mouse to desired window and left click to attach toolbar to it" -1 0 0 "" 0 0 8
wait 0 ML
int hwnd = win(mouse)
mac "ToolBar1" hwnd
#3
Thnx Kevin !

(I have been searching the manual and somehow overlooked this - clearly explained there).

Works great now !


Forum Jump:


Users browsing this thread: 1 Guest(s)