There are many different ways this can work. You have to decide what you want to do with your fingers and how you want the computer to respond before anybody can tell you how to write the script.
For example, suppose you want to be able to press a certain key. The first time you press it, one of your WoWs gets hidden. The next time you press the key, that WoW gets revealed again.
That's just an example. You can do many other things. . Instead of hiding WoW, you could shrink it and cover it. Instead of doing it to one WoW, maybe you want to do it to twenty WoWs simultaneously. Instead of making a hotkey for this purpose, you could add this action to an existing hotkey, maybe your PIP hotkey, so it happens automatically when you PIP.
But I'll continue with the example I made up, a single hotkey that hides one WoW. Suppose you want that to happen when you press F9. Why F9? It's just an example. Pick any key or key combination you like.
You would write something like this:
Code:
<Hotkey F9>
<Toggle>
<TargetWin WoW1> // Substitute name of window on your PC
<HideWin>
<Toggle>
<TargetWin WoW1>
<ShowWin>
Connect With Us