|
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
============================================
|
|