Wrong window with triggers on WebView


#1

Describe the bug
I had working WebView that calls triggers to move the window.
Currently, it moves WebView instead of the window behind WebView.
It stopped working near 3 weeks ago

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
Keyboard and Triggers

Screenshots



Device information:

  • Type of Mac: macbook
  • macOS version: Mojave 10.14.3
  • BetterTouchTool version: 2.724

#2

Could you post the code you use to trigger the actions?


#3

const presetName = 'FloatWindowMenu'; const bttHandler = trigger => { window.BTT.callHandler('trigger_named', { trigger_name: trigger, ['close' + presetName]: 1 }) }


#4

Are you keeping the window open after triggering an action?
Otherwise you could try

const presetName = 'FloatWindowMenu'; const bttHandler = trigger => { 

window.BTT.callHandler('trigger_named', { 
trigger_name: trigger, 
closeFloatingHTMLMenu:1, 
['close' + presetName]: 1 })
 }

I think I know what caused the changed behavior. I have to think how to cover both use cases.


#5

Thanks, it works now :slight_smile:

Can I ask one more question about resizing a window?

I have a trigger with next configuration

I'm not sure how it exactly works and probably it's wrong, but I'm trying to add a trigger that keeps current window width and resize height from top to bottom/dock

Do you have an idea of how it should be correctly configured?

Thanks!


#6

That should work like this:


#7

Perfect, thank you!