AutoHotkey Community

It is currently May 26th, 2012, 10:23 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 352 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24  Next
Author Message
PostPosted: October 20th, 2009, 11:21 pm 
Hi, Great Script, I've been looking a long while and just found this.

Please can you help though. I need to resolve the issue below to be able to use this for work.
I want to be able to have e.g a Putty window running with a dock(with short cut commands), I then want to open another Putty window with the same dock? I also want then to switch between the 2 or more open Putty windows and have a dock each time.
I can't see how to do this. :cry:
Can anyone help please. :D

Many Thanks
Geesoft


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 20th, 2009, 11:39 pm 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
something like this:

Dock_ShutDown() to take off window 1
Dock_HostID := WinExist( var_with_title_orahk_id_ofwin2 )
Dock( hWnd_your_gui, "xy dock string here" ) ;


if this makes sense.

_________________
Joyce Jamce


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks Joy2DWorld
PostPosted: October 20th, 2009, 11:57 pm 
WOW
Thanks for the quick reply...

I'm very new to this sorry..

Just to try and get my head round this I have this as a test:-
My first try with the Notepad button won't run it just reports an instance is already running, if I say yes to replace the new window has the dock but when I go back to the original window it's gone.

Where would the "Dock_ShutDown" "WinExist" go? also is the WinExist the "anh_pid"?
Again sorry but I'm very new to this.

Thanks
GeeSoft

===============================================
#NoTrayIcon
Run notepad,,,nPID
WinWait ahk_pid %nPID%
Dock_HostID := WinExist("ahk_pid " . nPID)

Gui +LastFound -Caption +ToolWindow +Border
Gui Add, Text,,Docked Window
Gui, Add, Button, x32 y92 w90 h40 , Notepad


Gui, Add, Button, x32 y165 w80 h30, My Windows
Gui Show

Dock(WinExist(), "0,-1,0, 0,0,0, 0,150, 5,0") ; above, left, fixed width


return

ButtonNotepad:
Run, c:\Program Files\Utils\AutoHotkey\Extras\Scripts\Dock\Notepad-test-dock-2.ahk
Return

ButtonMyWindows:
msgbox, %A_OSVersion%
Return

#include c:\Program Files\Utils\AutoHotkey\Extras\Scripts\Dock\Dock.ahk
============================================


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2009, 12:55 am 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
dude/dudette,

register, post as a user. Good 1st step. If not worth *your* effort to do that, sure not worth my effort to reply.

_________________
Joyce Jamce


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Sorry Joy2DWorld
PostPosted: October 21st, 2009, 12:59 pm 
Offline

Joined: October 21st, 2009, 12:53 pm
Posts: 2
Location: London, UK
Sorry
In my haste to get something working I forgot my manners.

As per my prev post I need to be able to open multiple windows all when I give them focus to have a "dock".
From the previous post it looks like it can but could you give me or direct me to an "idiots" guide to getting this working.

Many Thanks

GeeSoft


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2009, 5:48 pm 
Offline

Joined: December 4th, 2006, 10:35 am
Posts: 561
Location: Galil, Israel
and how do you think you could do that conceptually ?

_________________
Joyce Jamce


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 21st, 2009, 6:24 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
I have implementation of Dock mod that seems like something you want.
MultipleHosts are supported. In my app I have single dock client (4th button in tittle bar). TittleButton jumps to new host as soon as it takes focus.
Instead of Dock_HostId there is Dock_IsHost(Hwnd) function that u implement.

Is that what you need ?

In any way, I am planning to work on new version of Dock (Dock 2.0) as next thing when I get free time. If this is not urgent stuff, Ill probably make such feature in next release.

If you use only AHK hosts for your stuff, you should check DockA function which supports multiple hosts.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Thanks majkinetor
PostPosted: October 21st, 2009, 8:04 pm 
Offline

Joined: October 21st, 2009, 12:53 pm
Posts: 2
Location: London, UK
Hi majkinetor,

Thanks for the reply.
I'm not sure if that will do what I'm after,
Do you have any example code I could look at to try to learn please?

Regards
GeeSoft


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 26th, 2009, 11:37 pm 
Offline

Joined: December 29th, 2007, 9:40 pm
Posts: 142
majkinetor wrote:
...
MultipleHosts are supported. In my app I have single dock client (4th button in tittle bar). TittleButton jumps to new host as soon as it takes focus.
...
Is that what you need ?
...


It will possibly help me with my endeavors.

If you'd be so kind to post up a link to it, I'd appreciate it.

TIA

-t

_________________
When replying, please feel free to address me as Tod. My AHK.net site...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2009, 9:46 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Its difficult to extract it from my code atm.

I plan to update this module so Ill take this into account.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 27th, 2009, 11:20 am 
Offline

Joined: November 14th, 2007, 2:47 pm
Posts: 335
Location: London, England
Thanks majkinetor.

I would also find this very helpful.

Your dock function is one of the most useful, and exciting functions I have seen.

I would also like proper support for multiple instances.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2010, 10:10 am 
Can the Host be kept in front of the Client ?..all the time?
if Client is bigger then the Host and center on it, then any click on Client will hide the Host


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2010, 10:47 am 
it is for this : http://www.autohotkey.com/forum/topic54448.html


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2010, 11:16 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Yes, use 2.0b3 version and topmost clients with T parameter.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2010, 11:50 am 
Works very, very good, thank you my friend!
:)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 352 posts ]  Go to page Previous  1 ... 18, 19, 20, 21, 22, 23, 24  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cristi®, specter333, spg SCOTT and 12 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