Window-switching

simple window switching, like for example Keyclone does it (even if its called pip there) can be done quite easily with using the selfwritten <ResizeAndPosition>-command shown above.

With this you can do for example simple switching with the trigger-keys F1 - F5 for the corresponding windows WoW1 - WoW5 like this:

Code:
//----------------------------------------------------------------
//Window Switching
//----------------------------------------------------------------
<Hotkey F1>
   <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
<Hotkey F2>
   <ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5>
<Hotkey F3>
   <ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5>
<Hotkey F4>
   <ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5>
<Hotkey F5>
   <ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
PiP

With HotKeyNet you can do real Picture-in-Picture drawing of windows, like on the following screenshot:


To do this you use the <SetWinPosition> and <SetWinSize>-commands like shown in the above section to resize and position the windows.
But in addition for the 'big window' you specify a 'hole' so that it doesn't overlap the 'littel windows'.

The command to use for this is: <SetWinRegion x y width height> with,

x = relative horizontal position, form the upper left corner of the target window, where the hole should start
y = relative vertical position, form the upper left corner of the target window, where the hole should start
width = horizontal width of th hole
height = vertical height of the hole

So to give an example, image 5boxing on an 1920x1200 screen, and you want the main window to take up the hole screen, and to line up the four 'slave'-windows with a size of 320x200 300 pixels from the bottom, with a spacing of 100px. To switch between them also we use F1-F5. This could be done like this:

Code:
<Command ResizeAndPosition>
   <SendPC Local>
       <SendWin %1%>
          <SetWinSize 1920 1200>
          <SetWinPos 0 0>
          <SetWinRegion 160 1620 300 200>
          <SetWinRegion 560 1620 300 200>
          <SetWinRegion 960 1620 300 200>
          <SetWinRegion 1360 1620 300 200>
      <SendWinM %2%>
          <SetWinSize 300 200>
          <SetWinPos 160 1620>     
      <SendWinM %3%>
          <SetWinSize 300 200>
          <SetWinPos 560 1620>     
      <SendWinM %4%>
          <SetWinSize 960 1620>
          <SetWinPos 1920 0>     
     <SendWinM %5%>
           <SetWinSize 1460 1620>
           <SetWinPos 1920 512>

//----------------------------------------------------------------
//Window Switching
//----------------------------------------------------------------
<Hotkey F1>
   <ResizeAndPosition WoW1 WoW2 WoW3 WoW4 WoW5>
<Hotkey F2>
   <ResizeAndPosition WoW2 WoW1 WoW3 WoW4 WoW5>
<Hotkey F3>
   <ResizeAndPosition WoW3 WoW2 WoW1 WoW4 WoW5>
<Hotkey F4>
   <ResizeAndPosition WoW4 WoW2 WoW3 WoW1 WoW5>
<Hotkey F5>
   <ResizeAndPosition WoW5 WoW2 WoW3 WoW4 WoW1>
for an example on HotKeyNEt-site see: this