Search found 1841 matches

by HotKeyIt
16 Aug 2019, 14:23
Forum: Ask For Help
Topic: Memory error with this code
Replies: 1
Views: 77

Re: Memory error with this code

As far as I understand you need to use all parameters for callback: #Warn Gui Add, ListView, x8 y8 w273 h362, Font name LV_ModifyCol(1, 250) Global FontList := [] EnumFonts() { hDC := DllCall("GetDC", "UInt", DllCall("GetDesktopWindow")) Callback := RegisterCallback("EnumFontsCallback", "F") DllCall...
by HotKeyIt
08 Aug 2019, 14:34
Forum: Ask For Help
Topic: AhkThread() ID's
Replies: 4
Views: 152

Re: AhkThread() ID's

MsgBox % GetCurrentThreadId()
by HotKeyIt
06 Aug 2019, 15:20
Forum: Ask For Help
Topic: AhkThread Example for AHK v1
Replies: 1
Views: 112

Re: AhkThread Example for AHK v1

The example should work in v1, it actually does not work in v2 because I have not updated docs to latest syntax. I am waitng for v2 to become beta since I have little to not time.
by HotKeyIt
04 Aug 2019, 18:25
Forum: Ask For Help
Topic: Getting Error when running Init() Topic is solved
Replies: 3
Views: 206

Re: Getting Error when running Init() Topic is solved

As far as I remember it was not easy to find the problem in GDip, simply disable #WarnContinuableException: http://hotkeyit.github.io/v2/docs/commands/_WarnContinuableException.htm
by HotKeyIt
28 Jul 2019, 15:45
Forum: AutoHotkey_H
Topic: [Guide] Compiling Ahk_h's source step by step
Replies: 28
Views: 2925

Re: [Guide] Compiling Ahk_h's source step by step

Are you also executing CleanUpAndPack.exe afterwards? If so then you will have to compile the dlls too!
So select MT_Release + MT_ReleaseDll + MT_ReleaseDllMini (not the mbcs!!!).
by HotKeyIt
28 Jul 2019, 03:33
Forum: AutoHotkey_H
Topic: [Guide] Compiling Ahk_h's source step by step
Replies: 28
Views: 2925

Re: [Guide] Compiling Ahk_h's source step by step

Make sure that AutoHotkey is the startup project (bold) and tick or select AutoHotkey|MT_Release|x64 only.
by HotKeyIt
27 Jul 2019, 18:51
Forum: AutoHotkey_H
Topic: [Guide] Compiling Ahk_h's source step by step
Replies: 28
Views: 2925

Re: [Guide] Compiling Ahk_h's source step by step

What do you mean by it does not work correctly?
by HotKeyIt
27 Jul 2019, 15:34
Forum: AutoHotkey_H
Topic: [Guide] Compiling Ahk_h's source step by step
Replies: 28
Views: 2925

Re: [Guide] Compiling Ahk_h's source step by step

What do you mean by ALL compilation options and what error do you get otherwise?
by HotKeyIt
25 Jul 2019, 15:35
Forum: Ask For Help
Topic: About AhkThread (Parent, Child and Sibling)
Replies: 22
Views: 1021

Re: About AhkThread (Parent, Child and Sibling)

As mentioned use CriticalObject to communicate and share variables between dlls: #NoEnv #NoTrayIcon SetBatchlines, -1 #SingleInstance, Force Global share, StopDll share:=CriticalObject({S1Count:0,S2Count:0,DllThreadS1:"",DllThreadS2:"",DllThreadS3:"",DllThreadS4:"",DllThreadS5:""}) StopDll:=Critical...
by HotKeyIt
25 Jul 2019, 05:52
Forum: Ask For Help
Topic: About AhkThread (Parent, Child and Sibling)
Replies: 22
Views: 1021

Re: About AhkThread (Parent, Child and Sibling)

Use the same way we used CriticalObject above (share) and do share.DllOtherThread....
If you can't get it right, post full example script.
by HotKeyIt
24 Jul 2019, 11:20
Forum: Ask For Help
Topic: About AhkThread (Parent, Child and Sibling)
Replies: 22
Views: 1021

Re: About AhkThread (Parent, Child and Sibling)

Use CriticalObject to communicate and share data between threads.
The only thing that can cause the crash is DllOtherThread as far as I can see, so having this in a CrticalObject and make sure that you clear it properly should solve the problem.
by HotKeyIt
22 Jul 2019, 19:19
Forum: Ask For Help
Topic: Launch Function & Catch Object in DllThread
Replies: 5
Views: 419

Re: Launch Function & Catch Object in DllThread

SetBatchlines,-1 fun:=Func("Obj") for i, j in fun.(3, 5) MsgBox % "Main Obj:`n" i ": " j test := " ( SetBatchlines,-1 fun:=Object(" (&fun) ") for i, j in fun.(3, 5) MsgBox `% ""test Obj:``n"" i "": "" j )" AhkDll := AhkThread(test) While AhkDll.ahkReady() Sleep 100 SoundBeep, 8000 ExitApp obj(a, b)...
by HotKeyIt
22 Jul 2019, 19:06
Forum: Ask For Help
Topic: About AhkThread (Parent, Child and Sibling)
Replies: 22
Views: 1021

Re: About AhkThread (Parent, Child and Sibling)

Try this: #NoTrayIcon #SingleInstance, Force share:=CriticalObject({count:0,s1Thread:"",s2Thread:""}) s1Script := " ( #NoTrayIcon share:=CriticalObject(" (&share) ") Loop ToolTip `% ""s1 count: "" ++share.count )" s2Script := " ( #NoTrayIcon share:=CriticalObject(" (&share) ") Loop MsgBox `% ""Count...
by HotKeyIt
10 Jul 2019, 17:52
Forum: Ask For Help
Topic: About AhkThread (Parent, Child and Sibling)
Replies: 22
Views: 1021

Re: About AhkThread (Parent, Child and Sibling)

Parameter also needs to be a string!SIBLING1Thread:=AhkThread(script,"" (&SIBLING1Script)) but you seems never to use it.
by HotKeyIt
10 Jul 2019, 16:49
Forum: Ask For Help
Topic: About ahkFunction
Replies: 7
Views: 277

Re: About ahkFunction

Sorry it should be c := PaternThread.ahkFunction("function", 5 "",8 "")
by HotKeyIt
10 Jul 2019, 16:47
Forum: Ask For Help
Topic: About AhkThread (Parent, Child and Sibling)
Replies: 22
Views: 1021

Re: About AhkThread (Parent, Child and Sibling)

Can you put a very simple script together doing the same?

Go to advanced search