AutoHotkey Community

It is currently May 27th, 2012, 10:16 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 352 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 24  Next
Author Message
 Post subject:
PostPosted: June 1st, 2007, 5:27 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Thx for the repot.
I think this variant can be added to prevent such problems. Only this didn't help you ? :
Code:
 If (hX="")
          WinMove ahk_id %Dock_ClientId%,,-32000,-32000
        else
          WinMove ahk_id %Dock_ClientId%,,X,Y,W,H


(hX=0 and hW=160) is regular scenario we cant filter this, and its probably app specifc.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 1st, 2007, 6:31 pm 
Offline

Joined: October 7th, 2005, 9:46 pm
Posts: 13
When the Dock host was minimized and the Docked window did not move, hX, hY, hW, and hH were always empty. On other occasions, however, there is a value in those variables when the window is minimized. When there is a value, the size and positioning of the window seems to change. Occasionally, the window will cover the start button and extend above it substantially, or it will appear as a thin strip directly above the start button. I tested this quite a bit with and checked the values with a tooltip. As far as I can tell, hX will always be 0 and hW will always be 160 when the window is minimized, but hW and hH are inconsistent. This has been the case with any window I have tested in Windows XP in various video modes. Checking for those values does not seem to cause a problem with docking at any other window position, and it provides behavioral consistency.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 1st, 2007, 6:56 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I will return then events for min & max that I removed recently. I will post you the changes so you can test .

Thx.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2007, 8:54 pm 
majkinetor

Nice script! I dont know if they've asked you this before, but is there a way for the docked window to close once the parent closes?

Thanks!

:wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 9th, 2007, 10:30 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I am aware of that. Didn't find any good solution yet.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 11:07 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
v0.99
- Multidock implemented
- Dock syntax changed as of multidock feature
- Optimisation

    Image


NOTE:
The multidock feature is always active. This doesn't introduce performance issues for single dock client, it works equaly fast as with versions < 0.99

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 11:44 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
How should I close the script? When I close the main gui, the three dock guis still exist. Even ExitApp in GuiClose, doesn't help.

_________________
Ciao
toralf
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 12:45 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I will try to do this in next update. That is currently not supported. You can now close it if you click on tray and exit :D

See related notes here:
http://www.autohotkey.com/forum/viewtop ... 205#127205

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 1:33 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
new version 1.0 b1

- Added notification for host death. This global is optional.

Quote:
Dock_OnHostDeath - Global, sets label that will be called when host dies. Afterwards global variable Dock_HostDiead will be true. This routine will be called only once when host dies. If you change Dock_HostId afterwards you will have to set Dock_HostDied=0. You will be notified again when current host dies.


You have very nice example with new features.

When you press F12 you will undock client 2
When you close Notepad Calculator will open and steal the clients. When you close Calculator script will exit.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 1:56 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
2Laszlo
Can you help me with something, I don't have much time.

Can you create more flexibile "Dock Definition" that will allow more position styles. For instance, to put client left bottom, keep client width & height etc...

I don't care how much parameters will Dock finaly have as they are all transmited as single argument now - pDockDef.

Benefits are big
- I will after that put named presets into Dock_presets variable. This will be fast and convenient method for user to use words instead number lists, for instance Dock(c1, "top-left") and for advanced docking configurations.

- I want to be able to add dock feature "add using current position". This will alow us to move clients and PIN them where we desire relative to the host. After we PIN them, dock should be created from the current client position (I hope I xplaind you well, many programs have this feature). I imagine this to be available via command - Dock(c1, "current")

- If there is a need afterwards we can create Dock Definition tool, but I guess ppl will never need more then 10-15 presets that will be available internaly anyway. New ones can be added easily without introducing performance or size problems.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 2:19 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
BTW, I noticed that usage of naked types in Dll Calls like Uint isntead "Uint" creates global variable Uint. This means that you should not use naked types in dll call.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 2:33 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
majkinetor wrote:
BTW, I noticed that usage of naked types in Dll Calls like Uint instead "Uint" creates global variable Uint. This means that you should not use naked types in dll call.
There was a significant speed advantage for the nudist case. I also like them, because I can make experiments, like setting Str=UIntP. These names should be handled as reserved, but for beginners, literal string types are safer.

I look into the position descriptions, but it may take a couple of days…


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 18th, 2007, 2:40 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Quote:
I look into the position descriptions, but it may take a couple of days…

Thx, its not requried to be today. Do it whenever you find time.

Quote:
There was a significant speed advantage for the nudist case.

Wasn't that true for non-nudist case ? As with string AHK doesn't check if parameter represents variable (even worst with #NoEnv...)

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: SAP Gui
PostPosted: August 7th, 2007, 7:39 pm 
Offline

Joined: May 23rd, 2006, 8:55 pm
Posts: 5
Hi Majkinetor,

i love your docking solution!
The following problem i can´t solve:
My SAP gui has up to 6 windows, but only one PID, so it´s docking at one window and that´s it.
I have written my own docking solution in the past, it works, but it produced up to 100% CPU load, if not used for a time :oops:
Any idea how to solve this (i mean, your solution docking to an active window of an ahk_class)?!

Anyway, many thanks for that!

Momme


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 27th, 2007, 10:33 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
version 1.0 b2

- First release without wineventhook.dll.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 352 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 24  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: specter333, XX0 and 24 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group