Search found 174 matches

by Soft
10 May 2017, 04:30
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Re: Dock - Attach a window to another

Helgef wrote:dock relative option?


you mean like this ?
by Soft
09 May 2017, 10:18
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Re: Dock - Attach a window to another

update 0.2.2 -It is now possible to dock more than one window (still WIP, its code and style are provisional) -changed some class properties's name for future consistency -Now Host (formerly main window) and Client window(formerly attached window) dock each other -several changes... see code and exa...
by Soft
09 May 2017, 10:10
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Re: Dock - Attach a window to another

Soft, I would just like to check on what is expected behavior. I notice that if I move the Notepad window it undocks. It then JUMPS to re-dock when I go to move the parent window. Can you confirm that is intended. Relayer It was just not implemented. Now dock has that feature though. Test with a ne...
by Soft
07 May 2017, 06:08
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Re: Dock - Attach a window to another

... oh right, class destructor can be called properly on this v0.2 I was testing with another build of Dock which was creating circular references . That's why I didn't implement Unhook() in __Delete() on public code :crazy: Why do you think you are a pain? I'm truly thankful and glad because you a...
by Soft
07 May 2017, 00:54
Forum: AutoHotkey v2 Development
Topic: 6th Anniversary
Replies: 13
Views: 1109

Re: 6th Anniversary

so it is happening! :)
much appreciated for your hard work lexikos
by Soft
06 May 2017, 21:20
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Re: Dock - Attach a window to another

Helgef wrote:And, you need to call unhook() in __delete()

Code: [Select all]GeSHi © Codebox Plus

__Delete()
{
if this.hook
this.Unhook()
this.CloseCallback := ""
}

Well I don't think I need to because __Delete() can never be called unless circular references are broken by Unhook()
by Soft
06 May 2017, 08:45
Forum: Ask For Help
Topic: "WinActive" issue and "Run"
Replies: 5
Views: 184

Re: "WinActive" issue and "Run"

... seem i'm missing some basic education in regards to AHK. If i keep If WinActive("ahk_exe winword.exe") it works perfectly, but if i add one "space" before the brakets, the code stop working propertly. ... adn if you point me to where can i lear the slight syntax quirks, that...
by Soft
06 May 2017, 06:38
Forum: Ask For Help
Topic: "WinActive" issue and "Run"
Replies: 5
Views: 184

Re: "WinActive" issue and "Run"

if WinActive "winword.exe" WinAcitvate ~ is not a command nor function, should be changed try this one If WinExist("ahk_exe winword.exe") { If WinActive("ahk_exe winword.exe") WinMinimize Else WinActivate, ahk_exe winword.exe } Else Run, C:\ProgramData\Microsoft\Window...
by Soft
05 May 2017, 21:52
Forum: Ask For Help
Topic: Elegant way to check variables before using them
Replies: 3
Views: 147

Re: Elegant way to check variables before using them

Code: [Select all]GeSHi © Codebox Plus

;a := 111
b := 222

If (StrLen(a) && StrLen(b))
{
Msgbox, Won't be showed
}
by Soft
05 May 2017, 21:47
Forum: Ask For Help
Topic: Is it a bad idea to use global objects like this?
Replies: 1
Views: 100

Re: Is it a bad idea to use global objects like this?

I don't think it's a bad idea, as long as it's not conflicting with other codes.
Defining super global variable/object can be useful on certain circumstances.
by Soft
05 May 2017, 19:39
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Re: Dock - Attach a window to another

Update 0.2 Changed 1. Subclassed EventsHandler to Dock.EventsHandler 2. Dock.EventsHandler is now a default callback, thereby you can omit Callback 3. several things... see codes and example for more information Added 1. AttachTo method, now you can set a position for docked window. See example 2. C...
by Soft
04 May 2017, 23:16
Forum: Scripts and Functions
Topic: KaiZen - Japanese Kanji Memorization Game
Replies: 4
Views: 379

Re: KaiZen - Japanese Kanji Memorization Game

lollol it may help me to pass jp course in school :lol:
by Soft
01 May 2017, 07:27
Forum: Ask For Help
Topic: Please help me set Autohotkey H Password hotkeyit..
Replies: 5
Views: 139

Re: Please help me set Autohotkey H Password hotkeyit..

util.cpp as far as I remember.
Why dont you check Hotkeyit's commits on his repo?
by Soft
01 May 2017, 06:36
Forum: Ask For Help
Topic: Please help me set Autohotkey H Password hotkeyit..
Replies: 5
Views: 139

Re: Please help me set Autohotkey H Password hotkeyit..

Have you changed pw in souce file? otherwise created executable wont work
by Soft
27 Apr 2017, 23:32
Forum: Scripts and Functions
Topic: [CLASS] Hotkey command wrapper
Replies: 11
Views: 1648

Re: [CLASS] Hotkey command wrapper

code has to break all circular references before calling __Delete() or whatever exit function, otherwise __Delete() won't be called by putting an empty value(eg Instance := "") For the same reason, gui wrapper doesn't seem to call __Delete() properly.Besides, I think it is better to add a ...
by Soft
25 Apr 2017, 02:01
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Re: Dock - Attach a window to another

Using the code in the example, if I want to dock multiple windows to the parent window, do I need to define for each docked window one new InitDockX, one new FuncObjX, and call OnMessage for each new FuncObjX? Depends on what you want. I registered OnMessage only to re-pos notepad when user moves t...
by Soft
24 Apr 2017, 04:45
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Re: Dock - Attach a window to another

... You may get some ideas there. I've used DockA() in the past. I forget what the difference was I also used his codes before, his code and mine act seemingly same, but differs in method. Since DockA() doesn't use hook winevents, but register OnMessage via Gui, it can only attach AutoHotkey Gui (a...
by Soft
24 Apr 2017, 04:29
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Re: Dock - Attach a window to another

Helgef wrote:perhaps you mean this.Delete("hwnd") or this.hwnd:="", in any case, it is not needed.
Edit: I don't like those code boxes ;)

oh right.., I know it's not needed, but I've been habituated to do this since I start to use c :crazy:
by Soft
23 Apr 2017, 02:00
Forum: Scripts and Functions
Topic: Dock - Attach a window to another
Replies: 22
Views: 1667

Dock - Attach a window to another

Dock uses SetWinEventHook functions to attach a window to another.

Since passing a func obj, or boundfunc(including methods) as a 'callback' is possible, you can create your own events handler like in 'Dock Example.ahk' on below

by Soft
21 Apr 2017, 07:26
Forum: AutoGUI
Topic: AutoGUI - GUI Designer and Script Editor
Replies: 261
Views: 82979

Re: AutoGUI - GUI Designer and Script Editor

impressive, btw why dont you use github? It would be the easier way for pushing updates

Go to advanced search