Posts: 43
Threads: 21
Joined: Feb 2013
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
Posts: 1,338
Threads: 61
Joined: Jul 2006
12-02-2020, 12:44 AM
(This post was last modified: 12-02-2020, 01:08 AM by Kevin.)
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
int hwnd = win()
mac "ToolBar1" hwnd
#2
this one waits till you left click a window after pressing Ctrl+F1
Trigger
CF1
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
Posts: 43
Threads: 21
Joined: Feb 2013
Thnx Kevin !
(I have been searching the manual and somehow overlooked this - clearly explained there).
Works great now !