Wrong window with triggers on WebView

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

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

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

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.

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!

That should work like this:

Perfect, thank you!

@Andreas_Hegenberg Any idea, how to trigger an action keeping the window open? I just want to create a helper which would be opened during working with the app.