I have a relatively simple gui script. I use mouse_cap to deal with shift.
When I run my script for the first time. shift works and does what it is suppose to, but when my script loses focus, shift no longer works and even when it gets active again the modifiers no longer work.
My script doesn't know it lost focus, so it can't be the script(since it works).
My guess is that reaper is doing something screwy with mouse_cap when the focus changes and it doesn't restore it back when the script gets focus back. (although, it shouldn't matter since the script responds to normal mouse stuff when it isn't focused)
Same problem occurs with
http://forum.cockos.com/showthread.php?t=161557
Once the script loses focus, it no longer displays the modifiers changing.