Interacting (hooking maybe) with other windows outside your

Just starting out? Need help? Post your questions and find answers here.
rjara
User
User
Posts: 14
Joined: Wed May 23, 2007 5:17 pm

Interacting (hooking maybe) with other windows outside your

Post by rjara »

Hi Purebasic community,

Bit of background…

I have a wide screen ASUS laptop that come with a utility call MultiFrame which places an icon on ( I imagine) all maximized non-hidden windows. When you left mouse click on this icon (of any windows open – visible, and I guess sizable) it opens a small popup screen which allows you to position that window. So you can do things like move word window to the left half side and say Excel on the right half. Each app using their hal of the screen. You can also make a window move to each corner, top, bottom etc.

Anyway, this utility is not customizable at all (no documentation found on ASUS site) so I would like to code my own based on what this utility does but with more flexibility. So for example, allow me to place one window (let say jaPBe V3) to take 2 thirds on the left of the screen and say “Win32 Reference” on the right third of the screen or any other combination I care to program in the code.

So…

1. How do I make my code accessable from any other window (like MultiFrame using the titlebar icon)? Do I have to use hooks (last time I used hooks a caught one of my fingers). I’ve trolled the forum as well as CodeArchiv but I don’t understand the examples (most of the time they are in German anyway in CodeArchiv)

2. I would like to have an image representation of the screen positions and be able to detect the region the user is on when the mouse is clicked on it (MultiFrame show you a small image representation of the screens that you click with your mouse) then act depending on what has been clicked (in this case position the window). I figured using this method may be simpler that having many button gadget etc. There could be a better way who knows!

3. I guess this is related to question one also. How do I get the handle of the window I’m on…for example MultiFrame (I assume) looks at the handle of the window you have clicked the Multiflame icon on and when you select a position it passes the window handle to the code that eventually position that window. So how do I do that? I have been playing with MoveWindow_ and so on…

I hope my questions make sense… sorry for my long convoluted post

Thanks