Quote from
fkapnist on September 21, 2022, 12:43 am
Quote from
leopold on September 20, 2022, 8:19 pm
But why doesn't the state of the variable change in the debugger when minimizing and maximizing the window?
There are no events in the Variables tab at all, although the global variable changes its value when minimizing/restoring the window.
Just create a local (author defined) variable from the global one
SetVar "[MyWindowState]" "[WindowState]"
You will then see MyWindowState in your debugger variable list with either normal, minimized, maximized
...................................
Actually, you're right.
The windows state variable is always Normal in the debugger, no matter what. I don't know why
........
It does work
if you put
SetVar "[MyWindowState]" "[WindowState]"
in the "App Properties>Actions>Resized" tab
Quote from
leopold on September 20, 2022, 8:19 pm
But why doesn't the state of the variable change in the debugger when minimizing and maximizing the window?
There are no events in the Variables tab at all, although the global variable changes its value when minimizing/restoring the window.
Just create a local (author defined) variable from the global one
SetVar "[MyWindowState]" "[WindowState]"
You will then see MyWindowState in your debugger variable list with either normal, minimized, maximized
...................................
Actually, you're right.
The windows state variable is always Normal in the debugger, no matter what. I don't know why
........
It does work
if you put
SetVar "[MyWindowState]" "[WindowState]"
in the "App Properties>Actions>Resized" tab